Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

On this pageOverview

Send emails with SMTP

Before you start, you'll need:

Prefer watching a video? Check out our video walkthrough below.

YouTube video player

When configuring your SMTP integration, use the following settings:

  • Host: smtp.resend.com
  • Port: 25, 465, 587, 2465, or 2587
  • Username: resend
  • Password: YOUR_API_KEY

Ports help to instruct the type of security you want to use in your SMTP connection.

Type Port Security
SMTPS 465, 2465 Implicit SSL/TLS (Immediately connects via SSL/TLS)
STARTTLS 25, 587, 2587 Explicit SSL/TLS (First connects via plaintext, then upgrades to SSL/TLS)

Idempotency keys are used to prevent duplicate emails. You can add the Resend-Idempotency-Key header to your emails sent with SMTP to prevent duplicate emails.

SMTP
From: Acme <onboarding@resend.dev>To: delivered@resend.devSubject: hello worldResend-Idempotency-Key: welcome-user/123456789<p>it works!</p>

Learn more about idempotency keys.

If your SMTP client supports it, you can add custom headers to your emails.

Here are some common use cases for custom headers:

  • Prevent threading on Gmail with the X-Entity-Ref-ID header
  • Include a shortcut for users to unsubscribe with the List-Unsubscribe header

Once configured, you can start sending emails via SMTP. Below are some frequently asked questions:

What if I need logs from the server to debug?

We currently don't provide SMTP server logs for debugging. If you run into issues, please reach out to support.

Where do I see the emails sent with SMTP?

Emails sent with SMTP will show in your emails table.

Does the rate limit apply when sending with SMTP?

Yes, the rate limit is the same as the API.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu