Documentation / lib/server/email
sendEmail()
function sendEmail(
email: string,
subject: string,
body: string,
authResendKey: string): Promise<boolean>;
Defined in: web-app/src/lib/server/email.ts:60
Sends an email to the specified email address.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The email address to send the email to. |
|
| The subject of the email. |
|
| The content of the email. |
|
| ‐ |
Returns
Promise
<boolean
>
A promise that resolves to a boolean indicating whether the email was sent successfully.
See
Resend Resend Docs
sendEmailChangeEmail()
function sendEmailChangeEmail(
email: string,
name: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: web-app/src/lib/server/email.ts:139
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
Promise
<boolean
>
sendEmailVerificationEmail()
function sendEmailVerificationEmail(
email: string,
name: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: web-app/src/lib/server/email.ts:91
Sends a verification email to the specified email address.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The email address to send the verification email to. |
|
| The name of the user to include in the email. |
|
| The verification token to include in the email. |
|
| ‐ |
Returns
Promise
<boolean
>
A promise that resolves to a boolean indicating whether the email was sent successfully.
sendPasswordResetEmail()
function sendPasswordResetEmail(
email: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: web-app/src/lib/server/email.ts:124
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<boolean
>
sendWelcomeEmail()
function sendWelcomeEmail(
email: string,
name: string,
authResendKey: string): Promise<boolean>;
Defined in: web-app/src/lib/server/email.ts:108
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<boolean
>