PRO Send Email - Captain
AI-generatedOverview
This node sends email campaigns using selected campaigns and email providers. It supports dynamic content in the email subject, preview, and body by evaluating expressions based on previous node data. It also respects 'Do Not Disturb' hours (9 PM to 9 AM) by delaying sending during this period. The node can send emails once per recipient with an optional cooldown period before resending. It is useful for automated email marketing campaigns, personalized email outreach, and managing email sending schedules.
Use Case Examples
- Sending a personalized email campaign to users with dynamic subject and content based on user data from a previous node.
- Delaying email sending during night hours to avoid disturbing recipients.
- Ensuring users receive an email only once within a specified cooldown period to prevent spamming.
Properties
| Name | Meaning |
|---|---|
| Select a Campaign | Select a campaign from the list to associate the email with. |
| Email Provider | Select the email provider from the list to send the email through. |
| Email Name | Name of the email campaign. |
| Sender Name | Name of the sender displayed in the email. |
| Subject | Subject line of the email, supports dynamic expressions. |
| Preview | Preview text of the email, supports dynamic expressions. |
| Email Content | Content/body of the email, supports dynamic expressions. |
| Users | User identifiers to send the email to; if blank, uses users from the previous node. |
| Once Per Email | Boolean flag to send the email only once per recipient. |
| When Can Users Receive Again (In days, 0 for never)? | Cooldown period in days before a user can receive the email again, applicable if 'Once Per Email' is true. |
| Dont Disturb | Boolean flag to delay sending emails during night hours (9 PM to 9 AM). |
Output
JSON
usersAndText- Array of user objects with personalized email content and subject.template- Email content template sent.emailName- Name of the email campaign sent.senderName- Name of the sender used in the email.once- Flag indicating if the email is sent once per user.onceDaysToRemove- Cooldown period in days before resending the email.campaign_id- ID of the selected campaign.providerTitle- Selected email provider title.
Dependencies
- Requires environment variables CDP_URL and UNEXO_API_KEY for API requests to fetch campaigns, email providers, and to send emails.
Troubleshooting
- If the node fails to fetch campaigns or email providers, check the environment variables CDP_URL and UNEXO_API_KEY for correctness and availability.
- If emails are not sent during night hours, verify the 'Dont Disturb' setting and the system time zone.
- If dynamic expressions in subject, preview, or content do not render correctly, ensure the expressions are valid and the referenced data exists in the previous node.
- If the API request to send emails fails, the node retries up to 3 times with delays; persistent failures may indicate network or API key issues.