Skip to main content
Communication actions allow you to send messages and notifications from your workflows. Use these actions to send transactional emails, alerts, and user notifications.

email

Sends email messages via SMTP. Use this action for transactional emails like welcome messages, password resets, order confirmations, and alerts.

Sender Email

The email address the message will be sent from.

Recipient Email

The email address to send the message to.

Name

The sender’s display name that appears in the recipient’s inbox.

Subject

The email subject line.

Content

The email body content. Supports plain text or HTML.

Auth

SMTP server authentication configuration. The auth object contains the following fields:

Server Hostname

The SMTP server hostname.

Server Port

The SMTP server port (typically 587 for TLS or 465 for SSL).

Username

The SMTP authentication username.

Password

The SMTP authentication password.
Store SMTP credentials in secrets and reference them with {{ secret "SECRET_NAME" }} to keep them secure.

Examples

Welcome Email

Send a welcome email when a user registers:

Password Reset Email

Send a password reset link:

Order Confirmation Email

Send an order confirmation with details:

Alert Notification

Send an alert email when an event occurs:

HTML Email

Send a formatted HTML email:

Common SMTP Providers

Some providers require app-specific passwords or API keys instead of your regular account password. Check your provider’s documentation for SMTP authentication requirements.

Next Steps

Secrets Management

Securely store SMTP credentials for your email actions.

Authentication

Generate password reset tokens and secure links.

Data Operations

Fetch user data to personalize your emails.

Actions Overview

Learn the fundamentals of ServFlow actions.