Docs / Zapier

Send email in Zapier with SMTP by Zapier

SMTP by Zapier sends a message through any SMTP server you give it, so Zaps can send from your own domain through Postwing instead of a shared Zapier address. It has one action, Send Email, and one quirk worth knowing before you start: it cannot use port 465.

✓
You can get them on the token management page. For security reasons, a token is shown only once — at the moment it is created.

SMTP connection settings

SettingValue
SMTP hostsmtp.postwing.app
Port587
EncryptionSTARTTLS (the connection is upgraded to TLS before login)
UsernameThe login of an SMTP token for your domain
PasswordThe password of that token — shown once, when the token is created
ℹ
Every mode is also available on a high port: 8465 (SSL/TLS), 8587 (STARTTLS) and 8025 (plain). Many hosting providers and clouds block outbound 25, 465 and 587 — if the connection times out, switch to the matching high port.

Connect SMTP by Zapier

Add an action step, choose SMTP by Zapier and the Send Email event, then create a new connection:

FieldValue
Hostsmtp.postwing.app
UsernameThe login of an SMTP token for your domain
PasswordThat token's password
Use TLSYes
Port587
From Emailnoreply@your-domain.com — on your verified domain
⚠
Zapier supports STARTTLS but not implicit TLS (SMTPS), which is what port 465 is. Use TLS: Yes with port 587 is the only encrypted combination that works here.

Configure Send Email

FieldValue
From NameYour company or product name
From Emailnoreply@your-domain.com
ToMapped from the trigger, e.g. the customer's email
SubjectText, with mapped fields if you like
BodyThe plain-text version
HTML BodyThe HTML version, if you send one
Reply ToWhere replies should go — the place for a visitor's own address

From Email is what DKIM, SPF and DMARC are checked against. An address on any other domain is refused by the relay, and would fail DMARC at the recipient even if it were not.

Send a test email

Map your own address into To and test the step. A failure shows the SMTP server's own reply, which tells you whether the port, the encryption or the credentials are wrong.

Or: Webhooks by Zapier

On a paid Zapier plan you can call the REST API instead. Add Webhooks by Zapier with the POST event and set:

FieldValue
URLhttps://api.postwing.app/external/send_email_simple/
Payload Typejson
Datarecipient, subject, body, sender, auth__username, auth__password
UnflattenYes — turns auth__… into the nested object

Zapier then sends this body:

json
{
  "recipient": "customer@example.com",
  "subject": "Your order is confirmed",
  "body": "<p>Thanks! Your order ships tomorrow.</p>",
  "sender": "Acme <noreply@your-domain.com>",
  "auth": {
    "username": "token-login@your-domain.com",
    "password": "your-token-password"
  }
}

recipient takes one address; Data pairs cannot build the to array. sender must include a display name and be on your verified domain. The token's password lives in the step, so anyone who can edit the Zap can read it. Every other field is in the API reference.

Troubleshooting

ErrorCause and fix
Connection fails on port 465SMTPS is not supported by Zapier. Use 587 with Use TLS: Yes.
535 authentication failedWrong token login or password.
550 from must be equal to …From Email is not on your verified domain.
503 5.5.1 RCPTThe mapped To field was empty for this run.
Email arrives as plain textThe markup is in Body instead of HTML Body.
Webhook: HTTP 400 Invalid username or passwordWrong token in auth__username / auth__password.
Webhook: HTTP 400, auth is requiredUnflatten is off, so the keys arrived flat. Set it to Yes.
Webhook: HTTP 400 Required format: full name <username@domain.ltd>Add a display name to sender.

Frequently asked questions

Why does SMTP by Zapier fail on port 465?

Zapier connects either unencrypted or with STARTTLS; implicit TLS on port 465 (SMTPS) is not supported. Use port 587 with Use TLS set to Yes.

What does Use TLS do in SMTP by Zapier?

With Yes, Zapier upgrades the connection with STARTTLS before sending the password. Leave it on: without it the token's password crosses the network unencrypted.

Why is my Zapier email sent as plain text?

The Body field is the plain-text version. Put your markup in HTML Body and keep a short plain-text Body as the fallback — the message then goes out with both parts.

Can I send from the address someone typed into a form?

No. The From Email must be on your verified domain — that is the domain your DKIM and SPF cover, and the relay refuses any other. Map the visitor's address to Reply To instead.

Can I use Webhooks by Zapier instead of SMTP?

Yes, on a paid Zapier plan — Webhooks by Zapier is not available on the Free plan. A POST to the send API gets you saved templates and a response with the message id every delivery webhook reports.

How do I send the nested auth object from Webhooks by Zapier?

Name the keys auth__username and auth__password and set Unflatten to Yes. Zapier turns the double underscore into a nested object.

Next steps