Documentation / lib/server/email
sendEmail()
function sendEmail(
email: string,
subject: string,
body: string,
authResendKey: string): Promise<boolean>;
Defined in: apps/web/src/lib/server/email.ts:58
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
sendEmailVerificationEmail()
function sendEmailVerificationEmail(
email: string,
name: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: apps/web/src/lib/server/email.ts:89
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.
sendWelcomeEmail()
function sendWelcomeEmail(
email: string,
name: string,
authResendKey: string): Promise<boolean>;
Defined in: apps/web/src/lib/server/email.ts:106
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<boolean
>
sendPasswordResetEmail()
function sendPasswordResetEmail(
email: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: apps/web/src/lib/server/email.ts:122
TODO insert welcome user in this email
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
Promise
<boolean
>
sendEmailChangeEmail()
function sendEmailChangeEmail(
email: string,
name: string,
token: string,
authResendKey: string): Promise<boolean>;
Defined in: apps/web/src/lib/server/email.ts:137
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
|
|
Returns
Promise
<boolean
>