Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ensend.co/llms.txt

Use this file to discover all available pages before exploring further.

Overview

In addition to the SDKs and REST API, Ensend supports sending emails over SMTP. This is useful when you’re working with frameworks, platforms, or tools that have built-in SMTP support such as Laravel, Django, Rails, or Nodemailer. If your stack already knows how to talk SMTP, you can point it at Ensend and start sending with no additional integration work.

SMTP Credentials

To connect to Ensend’s SMTP server, you’ll need to obtain your API credentials from your project dashboard. The following configuration is used to connect to our smtp server for mail delivery.
host
smtp.ensend.co
This is the hostname of Ensend’s SMTP Server.
port
587 (recommended) or 465
Ensend’s smtp server supports connections over STARTTLS on port 587 and SSL on port 465. We recommend using port 587 for best compatibility with smtp clients
username
your_public_key
Your project’s public key is your SMTP username. Navigate to Workspace > Project > Credentials to view your public key.
password
your_project_secret
Any of your project’s sandbox and live secrets is used as your SMTP password. Navigate to Workspace > Project > Credentials to view your project secrets. Using a sandbox key will send your messages in sandbox mode. See live Live keys vs Sandbox keys
from
your_sender_identity
The from address is the address sending the message. This is any of your project sender identities. Navigate to Workspace > Project > Identies to view your project identities. Learn more here

Configuration Examples

import nodemailer from "nodemailer";

const transporter = nodemailer.createTransport({
  host: "smtp.ensend.co",
  port: 587,
  secure: false, // set true if using SSL or port 465
  auth: {
    user: "your_public_key",
    pass: "your_project_secret",
  },
});

await transporter.sendMail({
  from: '"your_identity_name" <your_sender_identity>',
  to: "your_recipient_address",
  subject: "Ensend Test Email",
  html: "<b>It works πŸŽ‰</b>",
});
Last modified on April 14, 2026