-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix mailer settings for gmail
- Loading branch information
Showing
12 changed files
with
4,241 additions
and
2,621 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,14 @@ import { createOtp } from '../services/otp' | |
export default async function sendVerificationEmail(email: string, userId: number) { | ||
const otp = await createOtp(userId) | ||
const template = verifyEmailTemplate(otp, '[email protected]', 'Avantage Support', 'Avantage') | ||
sendGmail({ template, to: email, from: 'Rick', subject: 'Nuxt Mailer email verification' }) | ||
|
||
console.log('sendMail +++: ', email) | ||
sendGmail({ | ||
template, | ||
to: email, | ||
from: 'Rick', | ||
subject: 'Nuxt Mailer email verification' | ||
}) | ||
} | ||
|
||
export async function sendReminderVerificationEmail(email: string, userId: number) { | ||
|
Oops, something went wrong.