Skip to content

Email Added in v1.4 ​

Flows can send email from your workflows, next to WhatsApp. Flows decides who gets what and when, checks consent and writes the message; your own email provider account delivers it: Amazon SES, or Sinch Mailgun Added in v1.5. Mail goes out from your own domain, so its reputation is yours. The rules below (consent, unsubscribe, bounces, warm-up, pauses) are the same whichever provider you use.

You need:

  • An account with a provider: Amazon SES set up in a region (Mumbai, ap-south-1, is a good default for India) with an access key that may use SES, or Sinch Mailgun (US or EU region) with its account API key.
  • A domain you control in DNS. Use a subdomain such as mail.yourbrand.com, not your main domain.
  • The Admin or Owner role in the project. Other members see Email settings but can't change them.

Everything is under Settings › Email.

1. Connect a provider ​

Click Connect email provider, pick the provider, and fill in what it asks for. Keys are stored encrypted and never shown again; when you edit a connection, leave a key empty to keep the saved one.

Amazon SES

FieldWhat to enter
NameAnything that helps you recognise it, like SES Mumbai.
RegionThe AWS region where SES is set up.
Access key ID and secretAn AWS access key that may use SES.
Configuration set and SNS topicRequired. They bring bounces and complaints back to Flows. See step 4.

Sinch Mailgun Added in v1.5

FieldWhat to enter
NameAnything that helps you recognise it, like Mailgun EU.
RegionUS or EU: where your Mailgun account lives.
API keyThe account's primary API key (Mailgun › Settings › API Security). A domain sending key can't add domains.
HTTP webhook signing keyFrom the same page. It isn't the API key: Flows uses it to check that events really come from Mailgun.

Flows checks the key at once and shows the account's state:

  • Connected: ready, with how much it may send ("Can send 50,000 a day, 14 a second").
  • Test mode: a new SES account can only email addresses it has verified. Ask AWS for production access before sending to customers.
  • Keys refused: the key is wrong, or isn't allowed to use SES.
  • Sending paused by the provider: AWS has stopped sending on the account.
  • Under review by Amazon: Amazon is looking at the account because of bounces or complaints. Promotional email stops; transactional email still goes. Clean your list, then Check again.

Flows checks every connection again every hour. Check again does it now.

2. Add a sending domain ​

Click Add sending domain and choose:

FieldWhat to enter
DomainThe subdomain you send from, like mail.yourbrand.com.
PurposeTransactional (receipts, delivery updates) or Promotional (offers). Use separate domains for the two, so offers can never hurt the reputation of your receipts.
From name and addressWhat people see, like YourBrand hello@mail.yourbrand.com. Avoid "noreply": people should be able to answer. The name can't have emoji or tick marks (©, ® and ™ are fine), start with "Re:" or "Fwd:", or be longer than 64 characters.
Reply-toA mailbox someone reads.
Return-address subdomainAmazon SES only: where bounces go (MAIL FROM). The default, bounce.<domain>, is fine. Mailgun uses the domain itself.
Link domainOptional. A host for unsubscribe links, like links.yourbrand.com. Without it, links use the app's own address.
DMARC report addressOptional. Added in v1.6 Where mailbox providers send DMARC reports, if Flows suggests a DMARC record.

Flows registers the domain with your provider and lists the DNS records to publish. With Mailgun, Flows also sets up the domain's event webhooks by itself.

3. Publish the DNS records ​

Each record has copy buttons. Add them at your DNS provider:

RecordWhy
DKIM (3 × CNAME …._domainkey.… for SES, a TXT …._domainkey.… for Mailgun)DKIM: signs every email so mailbox providers know it's really from you.
SPF: MX and TXT on the bounce subdomain (SES), or a TXT on the domain itself (Mailgun)SPF, so it lines up with your domain.
MX and tracking CNAME (Mailgun)Shown for completeness; Flows doesn't need them, so they don't block verification.
TXT _dmarc.<your main domain>, only when suggestedDMARC: tells mailbox providers what to do with mail that fails the checks. Added in v1.6 Flows first looks at your main domain: if it already has a DMARC policy, nothing is suggested and the domain inherits it (a stricter quarantine or reject is never weakened). If there is none, Flows suggests p=none on the main domain, with your report address when you gave one.
CNAME for the link domainOnly if you set one.

Then click Check DNS now. Each record shows ✓ or ✗ with what is missing. DNS changes can take from a few minutes to a few hours to be seen. When every check passes, the domain is Verified and can send.

Flows checks verified domains again every day. A domain whose records stop passing turns Failing and stops sending until it is fixed. A short DNS outage doesn't stop a working domain.

TIP

Add your domain to Google Postmaster Tools to see how Gmail rates it.

4. Bounces and complaints ​

Nothing is sent until bounces and complaints reach Flows: without them, Flows would keep emailing addresses that don't exist, which quickly hurts your domain.

Sinch Mailgun: Flows sets up the webhooks on each sending domain by itself. Press Send a test event, type your own address (or that of someone with access to the project), and Flows sends one real email to it from a verified domain; its delivery confirms the events. Added in v1.6 Any connection, Mailgun or SES, sends at most 5 test events a day. Flows only accepts events signed with your webhook signing key, and refuses old or repeated ones.

Amazon SES: set it up once:

  1. In SES, create a configuration set with an event destination to an SNS topic, for the events Bounce, Complaint, Delivery, Delivery delay and Reject.
  2. In SNS, add an HTTPS subscription to the Events address shown on the connection (https://<your-app>/email/webhook/<id>). Flows confirms the subscription by itself.
  3. On the SNS topic, set SignatureVersion to 2. Flows refuses the older signature.
  4. Enter the configuration set name and the topic ARN on the connection.
  5. Press Send a test event. Flows emails Amazon's test mailbox from one of your verified domains, and the event that comes back proves the whole chain works.

The connection shows Events: confirmed once Flows has checked the configuration set and received a signed event from that topic. Until then it says what is missing. If events stop arriving (the subscription is removed, or a day passes with emails sent and nothing back), the connection goes back to waiting and nothing is sent until a test event works again. Flows only accepts events signed by your provider (for SES, from that exact topic), and only acts on events about emails it sent. Then, for both providers:

  • Hard bounce (the address doesn't exist): the address is blocked for all your projects, and the contact is marked as bounced.
  • Soft bounce (a full mailbox, say): after 3 in a row, promotional email to that address waits until an email reaches it again. Transactional email still goes.
  • Complaint (marked as spam): the address gets no more promotional email from any of your projects, and promotional emails still waiting to go to it are cancelled.
  • A campaign pauses itself when, after at least 100 emails, more than 5% bounce or more than 0.1% of delivered emails are marked as spam. Find out why before resuming it.

A domain pauses itself ​

Flows watches each sending domain over the last 24 hours, whatever sent the emails (campaigns or workflows). It pauses the domain when:

  • at least 10 emails, and 3% or more of at least 100 sent, bounced for good or were refused by the receiving server, or
  • at least 5 emails, and 0.08% or more of at least 1,000 sent, were marked as spam, or
  • 20 or more emails were refused by receiving servers within an hour.

The Dashboard and Monitor show the pause, and the domain card says why. An Admin presses Resume sending once the cause is fixed. On a transactional domain, emails wait during the pause and go out after Resume; promotional emails are not sent. These limits sit below Amazon's own review lines, so Flows stops first.

Warm-up and sending speed ​

A new domain has no reputation yet, so mailbox providers distrust a sudden flood. A domain starts at 500 emails a day. Each day it actually sends at least 80% of its limit without bounce or complaint trouble, the limit goes up a step (750, 1,000, 1,500… up to 100,000 a day). A quiet domain keeps its limit; time alone never raises it. The domain card shows today's limit, how much is left and how many emails are waiting.

Emails over the limit wait. A transactional email that waits more than 24 hours, or a promotional one more than 72 hours, is not sent and says why. Plan a first launch to fit: for example one region, or a share of customers on email. You can set a lower daily limit on the domain, but not a higher one. Flows also never sends faster than the per-second rate Amazon allows the account.

Before the first promotional email ​

Gmail and Yahoo need the unsubscribe headers to be covered by your DKIM signature. Open the promotional domain, follow Check unsubscribe signing (send a test to a Gmail address, open Show original, and look for List-Unsubscribe in the h= list of the DKIM signature), then record it. Promotional email from that domain waits until this is recorded, and has to be recorded again if the domain's purpose changes or its DKIM records stop passing. The link domain must also serve Flows' unsubscribe page over HTTPS: if it can't be reached for three hourly checks in a row, or for more than a day, promotional email from that domain waits until it can. Promotional domains are checked every hour. Before a first promotional send, press Check DNS now on the domain the same day.

5. Send email from a workflow ​

Add the Send email step (group Email) and set:

SettingWhat it does
FromA verified sending domain of the right purpose: a transactional domain for a transactional workflow, a promotional one for a promotional workflow. Others are shown but can't be picked.
ToLeave empty to email the person in the run. Or use a variable, like {{ trigger.data.email }}. In a promotional workflow, the owner of that address must have agreed to marketing email.
SubjectUp to 200 characters, with no tick marks, and not starting with "Re:", "Fwd:" or "Fw:" (Gmail treats those as deceptive). Flows refuses such subjects.
Message (HTML)The email. Values you insert with variables are made safe, so a name can't break the layout.
Plain-text versionOptional: Flows makes one from the HTML.

The step has two exits: Sent and Failed. Failed says why, for example "This person has no email address".

The workflow's What this workflow sends setting decides the rules:

  • Transactional emails go to anyone with an email address who isn't blocked.
  • Promotional emails only go to people who agreed to marketing email, respect your quiet hours and frequency limits, and always carry an unsubscribe link.

Unsubscribe ​

Every promotional email has a one-click unsubscribe, the way Gmail and Yahoo require:

  • Mail apps show an Unsubscribe button next to the sender. One click unsubscribes, at once.
  • A link at the bottom of the email opens a page with an Unsubscribe button. Opening the page alone never unsubscribes anyone (some email scanners open every link).

Put {{unsubscribe_url}} in your HTML to place the link yourself; otherwise Flows adds a short line at the end. Unsubscribes are kept as proof in the contact's consent history, apply to every project of your company, and are never undone by an import or a workflow.

Tracking Added in v1.6 ​

Flows doesn't track opens or clicks. Mailgun emails are sent with tracking off, so links are never rewritten. If open or click tracking is switched on in your Amazon SES configuration set, or Mailgun's unsubscribe footer is switched on for a domain, the connection shows a warning: tracking rewrites links in receipts through the provider's shared domain, which hurts trust and deliverability. Every email carries a Feedback-ID header, so Gmail's Postmaster Tools can report spam rates per workflow or campaign. It contains IDs only, nothing about the person.

Flows documentation for v1.x (v1.7.2).