SMTP Relay
Connect any application via standard SMTP. Use your existing tools — no code changes required.
SMTP Settings
Host: smtp.grosend.com
Port: 587 (STARTTLS) or 465 (SSL/TLS)
Username: your-api-key
Password: your-api-key
Example: Node.js (Nodemailer)
const nodemailer = require('nodemailer');
const transporter = nodemailer.createTransport({
host: 'smtp.grosend.com',
port: 587,
secure: false,
auth: {
user: 'sv_live_your_key',
pass: 'sv_live_your_key',
},
});
await transporter.sendMail({
from: 'hello@yourdomain.com',
to: 'user@example.com',
subject: 'Hello from Grosend',
html: '<h1>Sent via SMTP!</h1>',
});
Example: Python
import smtplib
from email.mime.text import MIMEText
msg = MIMEText('<h1>Sent via SMTP!</h1>', 'html')
msg['Subject'] = 'Hello from Grosend'
msg['From'] = 'hello@yourdomain.com'
msg['To'] = 'user@example.com'
with smtplib.SMTP('smtp.grosend.com', 587) as server:
server.starttls()
server.login('sv_live_your_key', 'sv_live_your_key')
server.send_message(msg)
Example: curl
curl --url "smtp://smtp.grosend.com:587" \
--ssl-reqd \
--mail-from "hello@yourdomain.com" \
--mail-rcpt "user@example.com" \
--user "sv_live_your_key:sv_live_your_key" \
-T email.eml
When using SMTP, your API key serves as both username and password. The sender address must be from a verified domain.