Send Verification Email
amerta / amerta/payload/utilities/emails/sendVerificationEmail / sendVerificationEmail
Function: sendVerificationEmail()
sendVerificationEmail(
customer,verify_url):Promise<unknown>
Defined in: amerta/payload/utilities/emails/sendVerificationEmail.ts:22
Sends an email verification link to the customer.
This function sends a customer verification email containing a link to verify their email address. The verification URL is included in the email template.
Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| customer | Customer | The customer to send the verification email to |
| verify_url | string | The complete verification URL for the customer to click |
Returns
Promise<unknown>
Async
Example
const customer: Customer = { id: '123', email: 'user@example.com', ... };
const verifyUrl = `https://example.com/verify?token=abc123`;
await sendVerificationEmail(customer, verifyUrl);