Send Email

Overview

The Send Email action sends email messages from your workflows to notify users, teams, or external systems. It's essential for alerts, notifications, and communication within automated processes.

circle-info

📧 Purpose

Use Send Email to:

  • Send notifications and alerts

  • Report test results

  • Notify teams of important events

  • Send confirmations and receipts

  • Distribute generated reports


When to Use Send Email

✅ Good Use Cases

Scenario
Reason

Failure Alerts

Notify team when test fails

Report Distribution

Email reports to stakeholders

Confirmation Emails

Send to users for verification

Status Updates

Periodic updates to team

Error Notifications

Alert on critical failures

Approval Workflows

Request decisions via email

Summary Reports

Daily/weekly digests

❌ Anti-Patterns (Don't Do)

  • ❌ Send spam emails

  • ❌ Send email on every step (overwhelming)

  • ❌ Send without validation

  • ❌ Use as primary alert mechanism (use dedicated platform)

  • ❌ Include sensitive data in email body


Configuration

Basic Setup

  1. Open your workflow

  2. Click "Add Action" → Select "Send Email"

  3. Configure email:

    • To: Recipient email address(es)

    • Subject: Email subject line

    • Body: Email content

    • Attachments (optional): Files to attach

  4. Configure advanced options if needed

  5. Save

Configuration Options


Building Email Content

Subject Line Best Practices

Email Body Structure


Practical Examples

Example 1: Test Failure Alert

Example 2: Daily Test Report

Example 3: Deployment Approval Request


Email Templates

Template 1: Quick Status

Template 2: Detailed Report

Template 3: Error Alert


Dynamic Content in Emails

Using Variables

Include data from workflow steps:

Conditional Email Content

Including Attachments


Best Practices

✅ Do

  • Include clear subject - Recipient knows what it's about

  • Use formatting - Make emails scannable

  • Include timestamps - Understand when issue occurred

  • Provide actionable items - Tell recipient what to do

  • Include links - Direct to full reports or dashboards

  • Use appropriate frequency - Don't overwhelm

  • Validate before sending - Check recipient and content

  • Include context - Provide relevant background

  • Respect recipients - Don't send spam

❌ Don't

  • Send on every step - Overwhelming volume

  • Include sensitive data - Security risk

  • Send empty emails - Provide meaningful content

  • Forget subject line - Always include clear subject

  • Include unnecessary details - Keep concise

  • Send to wrong recipients - Verify recipients carefully

  • Use generic messages - Personalize when possible

  • Ignore formatting - Structure for readability

  • Send without timestamps - Include when for context


Workflow Examples

Example: Test Results Email

Example: Conditional Alert Email

Example: Multi-Recipient Report


Troubleshooting

Issue: Email not received

Symptoms:

  • Email doesn't arrive in inbox

  • No error in workflow

Causes:

  • Recipient address incorrect

  • Email marked as spam

  • Mail server issue

  • Network connectivity

Solutions:

  1. Verify recipient email address

  2. Check spam/junk folder

  3. Verify email service health

  4. Check mail server logs

  5. Test with different recipient

Issue: Email formatting broken

Symptoms:

  • Email appears garbled

  • Formatting not applied

  • Links not clickable

Causes:

  • HTML formatting incorrect

  • Plain text instead of HTML

  • Character encoding issue

Solutions:

  1. Use valid HTML formatting

  2. Send test email

  3. Check character encoding

  4. Verify email client compatibility

Issue: Attachments not sending

Symptoms:

  • Email received but no attachments

  • Attachment size error

Causes:

  • File too large

  • Wrong file path

  • Missing permissions

  • File not generated yet

Solutions:

  1. Check file size limits

  2. Verify file path correct

  3. Check file permissions

  4. Ensure file exists before sending


Integration with Other Actions

Send Email + Retry

Ensure email delivery:

Send Email + Condition

Conditional sending:

Send Email + Wait

Batch emails:



Summary

  • Send Email delivers notifications from workflows

  • Use for alerts and important notifications

  • Structure emails for readability and action

  • Include context - timestamps, links, details

  • Validate recipients - send to correct people

  • Combine with conditions - send only when needed


Next: Learn about Data Hub Action for data management.

Last updated