Skip to main content

Well-Known Services

Nodemailer ships with connection presets for many popular SMTP providers. Instead of looking up each provider’s SMTP host name, port and security settings you can pass a single service string when you create a transport. Nodemailer will fill in the rest for you.

const nodemailer = require("nodemailer");

const transporter = nodemailer.createTransport({
service: "Gmail", // any id from the table below, case insensitive
auth: {
user: process.env.SMTP_USER,
pass: process.env.SMTP_PASS,
},
});

Internally service is just a shortcut – you can always supply host, port, secure and other options yourself. If something changes or your provider is missing you can open a pull‑request against the services.json file or bypass this feature entirely and set the connection details manually.

info

Most major providers require OAuth 2 or application‑specific passwords. The presets only configure the server connection; you are still responsible for using the correct authentication mechanism.

List of built‑in services

Service IDProviderSMTP hostPort
1und11&1 IONOSsmtp.1und1.de465
126126 Mailsmtp.126.com465
163163 Mailsmtp.163.com465
AliyunAlibaba Cloud (Aliyun)smtp.aliyun.com465
AliyunQiyeAlibaba Cloud Enterprisesmtp.qiye.aliyun.com465
AOLAOL Mailsmtp.aol.com587
BluewinSwisscom Bluewinsmtpauths.bluewin.ch465
DebugMailDebugMail.iodebugmail.io25
DynectEmailOracle Dynect Emailsmtp.dynect.net25
EtherealEthereal Email (test)smtp.ethereal.email587
FastMailFastMailsmtp.fastmail.com465
Feishu MailFeishu Mailsmtp.feishu.cn465
Forward EmailForward Emailsmtp.forwardemail.net465
GandiMailGandi Mailmail.gandi.net587
GmailGmail / Google Workspacesmtp.gmail.com465
GodaddyGoDaddy (US)smtpout.secureserver.net25
GodaddyAsiaGoDaddy (Asia)smtp.asia.secureserver.net25
GodaddyEuropeGoDaddy (Europe)smtp.europe.secureserver.net25
hot.eeHot.eemail.hot.ee25
HotmailMicrosoft Outlook / Hotmailsmtp-mail.outlook.com587
iCloudApple iCloud Mailsmtp.mail.me.com587
InfomaniakInfomaniak Mailmail.infomaniak.com587
LoopiaLoopiamailcluster.loopia.se465
mail.eeMail.eesmtp.mail.ee25
Mail.ruMail.rusmtp.mail.ru465
Mailcatch.appMailcatch.app (sandbox)sandbox-smtp.mailcatch.app2525
MaildevMaildev (local)127.0.0.11025
MailgunMailgunsmtp.mailgun.org465
MailjetMailjetin.mailjet.com587
MailosaurMailosaurmailosaur.io25
MailtrapMailtraplive.smtp.mailtrap.io587
MandrillMandrillsmtp.mandrillapp.com587
NaverNaversmtp.naver.com587
Oneone.comsend.one.com465
OpenMailBoxOpenMailBoxsmtp.openmailbox.org465
OhMySMTPOhMySMTPsmtp.ohmysmtp.com587
Outlook365Microsoft 365 / Outlook 365smtp.office365.com587
PostmarkPostmarksmtp.postmarkapp.com2525
ProtonProton Mailsmtp.protonmail.ch587
qiye.aliyunAliyun Enterprise (mxhichina)smtp.mxhichina.com465
QQQQ Mailsmtp.qq.com465
QQexQQ Enterprise Mailsmtp.exmail.qq.com465
SendCloudSendCloudsmtp.sendcloud.net2525
SendGridSendGridsmtp.sendgrid.net587
SendinBlueBrevo (formerly Sendinblue)smtp-relay.brevo.com587
SendPulseSendPulsesmtp-pulse.com465
SESAWS SES (generic)email-smtp.us-east-1.amazonaws.com465
SES-US-EAST-1AWS SES US East (N. Virginia)email-smtp.us-east-1.amazonaws.com465
SES-US-WEST-2AWS SES US West (Oregon)email-smtp.us-west-2.amazonaws.com465
SES-EU-WEST-1AWS SES EU West (Ireland)email-smtp.eu-west-1.amazonaws.com465
SES-AP-SOUTH-1AWS SES Asia Pacific (Mumbai)email-smtp.ap-south-1.amazonaws.com465
SES-AP-NORTHEAST-1AWS SES Asia Pacific (Tokyo)email-smtp.ap-northeast-1.amazonaws.com465
SES-AP-NORTHEAST-2AWS SES Asia Pacific (Seoul)email-smtp.ap-northeast-2.amazonaws.com465
SES-AP-NORTHEAST-3AWS SES Asia Pacific (Osaka)email-smtp.ap-northeast-3.amazonaws.com465
SES-AP-SOUTHEAST-1AWS SES Asia Pacific (Singapore)email-smtp.ap-southeast-1.amazonaws.com465
SES-AP-SOUTHEAST-2AWS SES Asia Pacific (Sydney)email-smtp.ap-southeast-2.amazonaws.com465
SeznamSeznam.cz Emailsmtp.seznam.cz465
SparkpostSparkPostsmtp.sparkpostmail.com587
TipimailTipimailsmtp.tipimail.com587
YahooYahoo Mailsmtp.mail.yahoo.com465
YandexYandex Mailsmtp.yandex.ru465
ZohoZoho Mailsmtp.zoho.com465