Test Email
The Unlayer Email Builder offers a feature that allows end-users to send a test email directly from the preview mode. This can be useful for testing the email design without having to export the content first. To enable the “Send Email” button in preview mode, the following steps must be followed:
How to Enable?
To enable this feature, make sure the following steps have been taken.
1. Email Mode
This feature is only available when the builder is running in email mode. Ensure that the builder is properly configured with displayMode
set to email
.
2. Identify the User
For security and functionality purposes, the end-user must be identified with a valid email address. You can pass the email address of the end-user using the email property during the builder’s initialization. This helps identify the user for sending the email. This is the email address that the email will be sent at.
unlayer.init({
user: {
id: 1,
signature: 'XXX',
name: 'John Doe', // optional
email: '[email protected]'
}
})
3. Setup Identity Verification
Ensure that identity verification is enabled for the end-user. Identity verification helps to securely handle the user’s email address and prevent impersonation. Learn More
4. Enable Feature
You can enable the feature by passing the following feature flag to unlayer.init
.
unlayer.init({
features: {
sendTestEmail: true
}
})
Updated 29 days ago