diff --git a/api/src/auth/auth.service.ts b/api/src/auth/auth.service.ts index b598537..b43872c 100644 --- a/api/src/auth/auth.service.ts +++ b/api/src/auth/auth.service.ts @@ -66,6 +66,12 @@ export class AuthService { name, email, }) + this.mailService.sendEmailFromTemplate({ + to: user.email, + subject: 'Welcome to TextBee - Lets get started!', + template: 'welcome-1', + context: { name: user.name }, + }) } if (user.googleId !== googleId) { @@ -113,6 +119,13 @@ export class AuthService { user.lastLoginAt = new Date() await user.save() + this.mailService.sendEmailFromTemplate({ + to: user.email, + subject: 'Welcome to TextBee - Lets get started!', + template: 'welcome-1', + context: { name: user.name }, + }) + const payload = { email: user.email, sub: user._id } return { diff --git a/api/src/mail/templates/welcome-1.hbs b/api/src/mail/templates/welcome-1.hbs new file mode 100644 index 0000000..25a4707 --- /dev/null +++ b/api/src/mail/templates/welcome-1.hbs @@ -0,0 +1,28 @@ +
+Welcome to TextBee! We’re excited to have you on board.
+
+TextBee is your go-to solution for seamless SMS gateway integration, designed to help you manage your messaging needs efficiently and effectively. Whether you’re a developer, marketer, or business owner, our platform is built to scale with your needs.
+
+Here’s how you can get started:
+
+ 1. Explore our Documentation: Learn how to integrate TextBee with your existing systems in the github readme
+ 2. Support Our Work: Consider supporting us on Patreon to help us continue improving TextBee.
+ 3. Star our repo on Github
+ 3. Join the Community on discord: Connect with other users and developers, ask questions, and share ideas on our Community Forum.
+
+
+If you have any questions or need assistance, feel free to reach out to our support team at textbee.dev@gmail.com.
+
+Thank you for choosing TextBee! We look forward to helping you streamline your messaging.
+
+