Documentation Index
Fetch the complete documentation index at: https://docs.usesend.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
You will need an API key and a verified domain to get the most out of this guide:
SMTP credentials
To set up your SMTP integration, you’ll need to provide the following credentials:
- Host:
smtp.usesend.com
- Port:
465, 587, 2465, or 2587
- Username:
usesend
- Password:
YOUR-API-KEY
Example with Nodemailer
Following example with Nodemailer shows how you can send mails with SMTP support from useSend and Nodemailer.
const nodemailer = require("nodemailer");
const transporter = nodemailer.createTransport({
host: "smtp.usesend.com",
port: 465,
secure: false,
auth: {
user: "usesend",
pass: "us_123",
},
tls: {
rejectUnauthorized: false,
},
});
const mailOptions = {
to: "[email protected]",
from: "[email protected]",
subject: "Testing SMTP",
html: "<strong>THIS IS USING SMTP,</strong><p>useSend is the best open source sending platform<p><p>check out <a href='https://usesend.com'>usesend.com</a>",
text: "hello,\n\nuseSend is the best open source sending platform",
};
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
console.error("Error sending email:", error);
} else {
console.log("Email sent successfully:", info.response);
}
});