Skip to main content

Well-Known Services

Nodemailer includes built-in connection presets for many popular email providers. Instead of manually looking up each provider's SMTP server hostname, port number, and security settings, you can simply specify a service name when creating a transport. Nodemailer automatically configures all the connection details for you.

const nodemailer = require("nodemailer");

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

The service option is simply a convenient shortcut. You can always specify host, port, secure, and other connection options manually if you prefer. If your provider is not listed or if connection settings have changed, you have two options: submit a pull request to update the services.json file, or bypass the presets entirely and configure the connection details yourself.

info

Most major email providers now require OAuth 2.0 authentication or app-specific passwords for security. The service presets only configure the server connection settings. You are still responsible for setting up the correct authentication method for your provider. For Gmail-specific setup instructions, see Using Gmail.

AWS SES Users

While the SES service presets below use SMTP credentials, Nodemailer also offers a dedicated SES transport that integrates directly with the AWS SDK. The SES transport can be simpler to configure if you are already using AWS credentials in your application.

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
ArubaAruba PEC (Italian)smtps.aruba.it465
BluewinSwisscom Bluewinsmtpauths.bluewin.ch465
BOLBOL Mail (Brazilian)smtp.bol.com.br587
DebugMailDebugMail.iodebugmail.io25
DisrootDisroot (privacy-focused)disroot.org587
DynectEmailOracle Dynect Emailsmtp.dynect.net25
ElasticEmailElastic Emailsmtp.elasticemail.com465
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
GMXGMX Mailmail.gmx.com587
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
KolabNowKolabNow (secure email)smtp.kolabnow.com465
LoopiaLoopiamailcluster.loopia.se465
LoopsLoopssmtp.loops.so587
mail.eeMail.eesmtp.mail.ee25
Mail.ruMail.rusmtp.mail.ru465
Mailcatch.appMailcatch.app (sandbox)sandbox-smtp.mailcatch.app2525
MaildevMaildev (local)localhost1025
MailerSendMailerSendsmtp.mailersend.net587
MailgunMailgunsmtp.mailgun.org465
MailjetMailjetin.mailjet.com587
MailosaurMailosaurmailosaur.io25
MailtrapMailtraplive.smtp.mailtrap.io587
MandrillMandrillsmtp.mandrillapp.com587
NaverNaversmtp.naver.com587
OhMySMTPOhMySMTPsmtp.ohmysmtp.com587
Oneone.comsend.one.com465
OpenMailBoxOpenMailBoxsmtp.openmailbox.org465
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
ResendResendsmtp.resend.com465
RunboxRunbox (Norwegian)smtp.runbox.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-EAST-2AWS SES US East (Ohio)email-smtp.us-east-2.amazonaws.com465
SES-US-WEST-1AWS SES US West (N. California)email-smtp.us-west-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-EU-WEST-2AWS SES EU West (London)email-smtp.eu-west-2.amazonaws.com465
SES-EU-WEST-3AWS SES EU West (Paris)email-smtp.eu-west-3.amazonaws.com465
SES-EU-CENTRAL-1AWS SES EU Central (Frankfurt)email-smtp.eu-central-1.amazonaws.com465
SES-EU-NORTH-1AWS SES EU North (Stockholm)email-smtp.eu-north-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
SES-CA-CENTRAL-1AWS SES Canada (Central)email-smtp.ca-central-1.amazonaws.com465
SES-SA-EAST-1AWS SES South America (Sao Paulo)email-smtp.sa-east-1.amazonaws.com465
SES-US-GOV-EAST-1AWS SES GovCloud (US-East)email-smtp.us-gov-east-1.amazonaws.com465
SES-US-GOV-WEST-1AWS SES GovCloud (US-West)email-smtp.us-gov-west-1.amazonaws.com465
SeznamSeznam.cz Emailsmtp.seznam.cz465
SMTP2GOSMTP2GOmail.smtp2go.com2525
SparkpostSparkPostsmtp.sparkpostmail.com587
TipimailTipimailsmtp.tipimail.com587
TutanotaTutanotasmtp.tutanota.com465
YahooYahoo Mailsmtp.mail.yahoo.com465
YandexYandex Mailsmtp.yandex.ru465
ZimbraZimbra Mail Serversmtp.zimbra.com587
ZohoZoho Mailsmtp.zoho.com465