Create outbound SMTP email
Our API for creating an email is inspired by and leverages Nodemailer's message option configuration. Please defer to the Nodemailer message configuration for all body parameters below.
Note that with the exception of envelope and dkim (since we set those automatically for you), we support all Nodemailer options. We automatically set disableFileAccess and disableUrlAccess options to true for security purposes.
You should either pass the single option of raw with your raw full email including headers or pass individual body parameter options below.
This API endpoint will automatically encode emojis for you if they are found in the headers (e.g. a subject line of Subject: 🤓 Hello gets converted to Subject: =?UTF-8?Q?=F0=9F=A4=93?= Hello automatically). Our goal was to make an extremely developer-friendly and dummy-proof email API.
Scheduled Sending: To schedule an email for future delivery, set the date field to a future timestamp (must be at least 1 minute ahead and no more than 30 days from now). The email will be held until the specified time. You can cancel it using the Delete email endpoint.
Authentication: This endpoint supports both API token authentication and alias credentials authentication. You can authenticate using either your API key (recommended) or your alias email address and generated password. See the Authentication section in the API documentation for details.
A domain's catch-all password also works here, with any address on the domain as the username. It can only send: the email is sent as the domain admin who generated the password, the From address can be any address on the domain, and the login cannot be used with any other endpoint.
Request
- Base URL: https://api.forwardemail.net
- URL: https://api.forwardemail.net/v1/emails
- Auth: one of:
- HTTP basic
- HTTP basic
Request body
Response
Email sent successfully
Example response
{
"message": "Email sent successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.