SMTP
Send through the Notix SMTP relay from any app or framework that speaks SMTP.
Send through the Notix SMTP relay from any app, framework or plugin that can send over SMTP. Mail sent this way goes through the same pipeline as the API: the same suppression list, tracking and webhooks.
Prerequisites
- An API key. It is your SMTP password.
- A verified domain. The from address must be on it.
Connection settings
| Setting | Value |
|---|---|
| Host | smtp.usenotix.dev |
| Port | 465 for implicit TLS, or 587 for STARTTLS |
| Username | notix |
| Password | Your Notix API key |
There is no separate SMTP password. Revoke the key and the SMTP login stops working with it.
Pick a port
Use
465if your client asks for SSL or TLS from the start. Use587if it asks for STARTTLS.Set the login
The username is always
notix. The password is your API key. Keep the key in your environment.NOTIX_API_KEY=notix_12345Send
import nodemailer from "nodemailer"; const transporter = nodemailer.createTransport({ host: "smtp.usenotix.dev", port: 465, secure: true, auth: { user: "notix", pass: process.env.NOTIX_API_KEY, }, }); await transporter.sendMail({ from: "Acme <receipts@acme.com>", to: "maria@example.com", subject: "Your receipt for order 4471", html: "<p>Thanks for your order, Maria.</p>", });import os import smtplib from email.message import EmailMessage msg = EmailMessage() msg["From"] = "Acme <receipts@acme.com>" msg["To"] = "maria@example.com" msg["Subject"] = "Your receipt for order 4471" msg.set_content("Thanks for your order, Maria.") with smtplib.SMTP("smtp.usenotix.dev", 587) as smtp: smtp.starttls() smtp.login("notix", os.environ["NOTIX_API_KEY"]) smtp.send_message(msg)MAIL_MAILER=smtp MAIL_HOST=smtp.usenotix.dev MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME=notix MAIL_PASSWORD="${NOTIX_API_KEY}" MAIL_FROM_ADDRESS=receipts@acme.com MAIL_FROM_NAME="Acme"import os EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" EMAIL_HOST = "smtp.usenotix.dev" EMAIL_PORT = 587 EMAIL_USE_TLS = True EMAIL_HOST_USER = "notix" EMAIL_HOST_PASSWORD = os.environ["NOTIX_API_KEY"] DEFAULT_FROM_EMAIL = "receipts@acme.com"
Sending from WordPress or another tool with an SMTP settings screen? Enter the same host, port, username and password, turn authentication on, and use a from address on your verified domain.
Next steps
- Read more about the relay on the SMTP relay page.
- Hear about deliveries and bounces with webhooks.
- Prefer the API? Start with the cURL quickstart.