MCPcopy Create free account
hub / github.com/CodeFox-Repo/codefox / sendConfirmationEmail

Method sendConfirmationEmail

backend/src/mail/mail.service.ts:17–26  ·  view source on GitHub ↗
(email: string, token: string)

Source from the content-addressed store, hash-verified

15 ) {}
16
17 async sendConfirmationEmail(email: string, token: string) {
18 const confirmUrl = `https://${this.configService.mailDomain}/auth/confirm?token=${token}`;
19
20 await this.mailerService.sendMail({
21 to: email,
22 subject: 'Confirm Your Email',
23 template: './confirmation',
24 context: { confirmUrl }, // Data for template
25 });
26 }
27
28 async sendPasswordResetEmail(user: User, token: string) {
29 const frontendUrl = this.configService.frontendUrl;

Callers 1

sendVerificationEmailMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected