Skip to main content
Supabase Step 1
AutoSend provides an SMTP relay service that allows you to send transactional emails using standard SMTP protocols. This is useful when integrating with platforms that require SMTP credentials, such as Supabase, WordPress, or other services that don’t support REST APIs.

Prerequisites

Verified Domain

Make sure you have a verified domain added in AutoSend to send emails from.

API Key

Create a new API key for SMTP authentication or use the existing one.

SMTP Credentials

Use the following credentials to configure your SMTP client:
SettingValue
Hostsmtp.autosend.com
Port465, 587
Usernameautosend
PasswordAS_xxxx (Your AutoSend API key secret)
EncryptionTLS/SSL (see port guide below)

Port Configuration

AutoSend supports multiple ports to accommodate different network configurations:
PortSecurityDescription
465Implicit TLSSMTPS - Connection is encrypted from the start. Recommended for most uses.
587STARTTLSSubmission port - Starts unencrypted, upgrades to TLS. Most widely supported.
Which port should I use? Start with port 587 (STARTTLS) as it’s the most widely supported. For implicit TLS, use port 465.

Integration Examples

const nodemailer = require('nodemailer');

const transporter = nodemailer.createTransport({
	host: 'smtp.autosend.com',
	port: 587,
	secure: true,
	auth: {
		user: 'autosend',
		pass: 'AS_xxx',
	},
});

await transporter.sendMail({
	from: '[email protected]',
	to: '[email protected]',
	subject: 'Hello from AutoSend',
	html: '<h1>Welcome!</h1><p>This email was sent via SMTP.</p>',
});

Platform Integrations

AutoSend SMTP works with any platform that supports SMTP configuration:
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/auth0.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=300319095f35ae56289f98f4552bf530

Auth0

Send authentication emails through AutoSend SMTP.
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/customerio.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=c5d1c813a47be8921a5562264eefe5a8

Customer.io

Send emails from Customer.io through AutoSend SMTP.
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/descope.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=428d8263d3d48786d9467f07796d760f

Descope

Send authentication emails from Descope through AutoSend SMTP.
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/nodemailer.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=e470723fa2b90d46188eaf2464d1f10f

Nodemailer

Send emails from Node.js apps using Nodemailer with AutoSend SMTP.
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/supabase.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=87f54096e8e4df246521713ef1aeed57

Supabase

Send auth emails from Supabase through AutoSend SMTP.
https://mintcdn.com/autosend-13920f5c/D_Mfmxm4VT2-xi-A/images/guides/wordpress.png?fit=max&auto=format&n=D_Mfmxm4VT2-xi-A&q=85&s=6f3ae79546a60d47b05c03706a9c1c73

WordPress

Configure WordPress to send emails through AutoSend SMTP.

Testing with Swaks

Swaks (Swiss Army Knife for SMTP) is a powerful command-line tool for testing SMTP configurations.

Installation

brew install swaks

Basic Test

swaks --to [email protected] \
      --from [email protected] \
      --server smtp.autosend.com \
      --port 587 \
      --tls \
      --auth-user [email protected] \
      --auth-password AS_xxx
      --header "Subject: Test Email via SMTP" \
      --body "This email was sent via AutoSend SMTP."

Test with Implicit TLS (Port 465)

swaks --to [email protected] \
      --from [email protected] \
      --server smtp.autosend.com \
      --port 465 \
      --auth-user [email protected] \
      --auth-password as_your_api_key_here \
      --tlsc

Test with HTML Body

swaks --to [email protected] \
      --from [email protected] \
      --server smtp.autosend.com \
      --port 587 \
      --auth-user [email protected] \
      --auth-password as_your_api_key_here \
      --header "Content-Type: text/html" \
      --body "<h1>Test Email</h1><p>This is a test from swaks.</p>"
Add -v or -vv for detailed SMTP conversation logs.

Troubleshooting

Possible causes:
  • The SMTP port may be blocked by your firewall or ISP
  • Incorrect server hostname
  • Network connectivity issues
Solutions:
  • Verify the hostname is smtp.autosend.com
  • Check your firewall rules
  • Test connectivity: telnet smtp.autosend.com 587
Possible causes:
  • Invalid API key
  • Username doesn’t match a verified sender
Solutions:
  • Verify your API key in the Dashboard
  • Ensure the username is a verified sender email address
  • Check that your domain is properly verified
  • Check for any extra whitespace in your credentials
Possible causes:
  • Using wrong encryption mode for the port
  • TLS certificate verification issues
Solutions:
  • For ports 465: Use implicit TLS (connection encrypted from start)
  • For ports 587: Use STARTTLS (starts unencrypted, upgrades to TLS)
  • If using swaks, add --tlsc flag only for ports 465
Possible causes:
  • Domain not verified
  • SPF/DKIM not configured
  • Recipient server blocking
Solutions:
  • Verify your sending domain is configured and verified in AutoSend
  • Check the sender email matches your verified domain
  • Add the required DNS records for SPF and DKIM
  • Review email activity in the Email Activity dashboard

FAQs

Yes! All emails sent through SMTP appear in your AutoSend Dashboard under the Email Activity section. You can view delivery status, opens, clicks, and bounces just like API-sent emails.
SMTP rate limits are the same as the REST API. Your plan’s sending limits apply across both SMTP and API. Check your Dashboard for your current limits.
Yes, AutoSend SMTP supports standard MIME attachments. Most SMTP libraries handle attachment encoding automatically. The maximum message size is 25MB including attachments.
SMTP adds minimal overhead compared to the REST API. For high-volume sending or when you need immediate delivery confirmation, the API may be slightly faster. For most use cases, SMTP performance is excellent.
Yes! Webhooks are triggered for all events (delivery, bounce, open, click, etc.) regardless of whether the email was sent via SMTP or the API.
Yes, you can send from any email address on a verified domain. Simply use the desired sender address in the “From” field. But make sure the domain is verified in your AutoSend account.

Next Steps

https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/domain.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=9393f9f9b0f7029e6ba8acf2bc09d864

Verify Your Domain

Set up SPF, DKIM, and DMARC for better deliverability
https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/api.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=a257e726f0f001df70664b740dcd5af6

API Integration

Explore our REST API for more advanced use cases
https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/webhook.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=14ad6675c71731ac04f786559a813ee1

Webhooks

Set up webhooks to track email events in real-time
https://mintcdn.com/autosend-13920f5c/nx_wYfWx3qeZwg1C/icons/email-activity.svg?fit=max&auto=format&n=nx_wYfWx3qeZwg1C&q=85&s=2ecad7369f217ee7d03c3d8dfdd36d22

Email Activity

Monitor your email delivery and engagement