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 (matching is 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.

Matching is case-insensitive and ignores spaces and other special characters. Provider aliases (for example "Google Mail", "Outlook"), known provider domains, and even full email addresses (for example "user@googlemail.com") also resolve to a preset.

info

Most major email providers now require OAuth 2.0 authentication or app-specific passwords for security. The service presets only configure connection settings (and, for a few providers, the preferred SMTP AUTH mechanism). 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

The Secure column shows whether the preset opens a TLS connection immediately (secure: true) or starts in cleartext and upgrades with STARTTLS. Preset extras lists any additional option the preset sets beyond host, port, and secure. A host or port shown as default is not part of the preset, so Nodemailer falls back to its normal default (localhost, and port 587 or 465 depending on secure).

Service IDProviderSMTP hostPortSecurePreset extras
126126 Mailsmtp.126.com465yes
163163 Mailsmtp.163.com465yes
1und11&1 IONOSsmtp.1und1.de465yesauthMethod: LOGIN
AliyunAlibaba Cloud (Aliyun)smtp.aliyun.com465yes
AliyunQiyeAlibaba Cloud Enterprisesmtp.qiye.aliyun.com465yes
AOLAOL Mailsmtp.aol.com587no
ArubaAruba PEC (Italian)smtps.aruba.it465yesauthMethod: LOGIN
BluewinSwisscom Bluewinsmtpauths.bluewin.ch465yes
BOLBOL Mail (Brazilian)smtp.bol.com.br587norequireTLS
DebugMailDebugMail.iodebugmail.io25no
DisrootDisroot (privacy-focused)disroot.org587noauthMethod: LOGIN
DynectEmailOracle Dynect Emailsmtp.dynect.net25no
ElasticEmailElastic Emailsmtp.elasticemail.com465yes
EtherealEthereal Email (test)smtp.ethereal.email587no
FastMailFastMailsmtp.fastmail.com465yes
Feishu MailFeishu Mailsmtp.feishu.cn465yes
Forward EmailForward Emailsmtp.forwardemail.net465yes
GandiMailGandi Mailmail.gandi.net587no
GmailGmail / Google Workspacesmtp.gmail.com465yes
GmailWorkspaceGmail Workspace (SMTP relay)smtp-relay.gmail.com465yes
GMXGMX Mailmail.gmx.com587no
GodaddyGoDaddy (US)smtpout.secureserver.net25no
GodaddyAsiaGoDaddy (Asia)smtp.asia.secureserver.net25no
GodaddyEuropeGoDaddy (Europe)smtp.europe.secureserver.net25no
hot.eeHot.eemail.hot.eedefaultno
HotmailMicrosoft Outlook / Hotmailsmtp-mail.outlook.com587no
iCloudApple iCloud Mailsmtp.mail.me.com587no
InfomaniakInfomaniak Mailmail.infomaniak.com587no
KolabNowKolabNow (secure email)smtp.kolabnow.com465yesauthMethod: LOGIN
LoopiaLoopiamailcluster.loopia.se465yes
LoopsLoopssmtp.loops.so587no
mail.eeMail.eesmtp.mail.eedefaultno
Mail.ruMail.rusmtp.mail.ru465yes
Mailcatch.appMailcatch.app (sandbox)sandbox-smtp.mailcatch.app2525no
MaildevMaildev (local)default (localhost)1025noignoreTLS
MailerSendMailerSendsmtp.mailersend.net587no
MailgunMailgunsmtp.mailgun.org465yes
MailjetMailjetin.mailjet.com587no
MailosaurMailosaurmailosaur.io25no
MailtrapMailtraplive.smtp.mailtrap.io587no
MandrillMandrillsmtp.mandrillapp.com587no
NaverNaversmtp.naver.com587no
OhMySMTPOhMySMTPsmtp.ohmysmtp.com587no
Oneone.comsend.one.com465yes
OpenMailBoxOpenMailBoxsmtp.openmailbox.org465yes
Outlook365Microsoft 365 / Office 365smtp.office365.com587no
PostmarkPostmarksmtp.postmarkapp.com2525no
ProtonProton Mailsmtp.protonmail.ch587norequireTLS
qiye.aliyunAliyun Enterprise (mxhichina)smtp.mxhichina.com465yes
QQQQ Mailsmtp.qq.com465yes
QQexQQ Enterprise Mailsmtp.exmail.qq.com465yes
ResendResendsmtp.resend.com465yes
RunboxRunbox (Norwegian)smtp.runbox.com465yes
SendCloudSendCloudsmtp.sendcloud.net2525no
SendGridSendGridsmtp.sendgrid.net587no
SendinBlueBrevo (formerly Sendinblue)smtp-relay.brevo.com587no
SendPulseSendPulsesmtp-pulse.com465yes
SESAWS SES (generic)email-smtp.us-east-1.amazonaws.com465yes
SES-AP-NORTHEAST-1AWS SES Asia Pacific (Tokyo)email-smtp.ap-northeast-1.amazonaws.com465yes
SES-AP-NORTHEAST-2AWS SES Asia Pacific (Seoul)email-smtp.ap-northeast-2.amazonaws.com465yes
SES-AP-NORTHEAST-3AWS SES Asia Pacific (Osaka)email-smtp.ap-northeast-3.amazonaws.com465yes
SES-AP-SOUTH-1AWS SES Asia Pacific (Mumbai)email-smtp.ap-south-1.amazonaws.com465yes
SES-AP-SOUTHEAST-1AWS SES Asia Pacific (Singapore)email-smtp.ap-southeast-1.amazonaws.com465yes
SES-AP-SOUTHEAST-2AWS SES Asia Pacific (Sydney)email-smtp.ap-southeast-2.amazonaws.com465yes
SES-CA-CENTRAL-1AWS SES Canada (Central)email-smtp.ca-central-1.amazonaws.com465yes
SES-EU-CENTRAL-1AWS SES EU Central (Frankfurt)email-smtp.eu-central-1.amazonaws.com465yes
SES-EU-NORTH-1AWS SES EU North (Stockholm)email-smtp.eu-north-1.amazonaws.com465yes
SES-EU-WEST-1AWS SES EU West (Ireland)email-smtp.eu-west-1.amazonaws.com465yes
SES-EU-WEST-2AWS SES EU West (London)email-smtp.eu-west-2.amazonaws.com465yes
SES-EU-WEST-3AWS SES EU West (Paris)email-smtp.eu-west-3.amazonaws.com465yes
SES-SA-EAST-1AWS SES South America (Sao Paulo)email-smtp.sa-east-1.amazonaws.com465yes
SES-US-EAST-1AWS SES US East (N. Virginia)email-smtp.us-east-1.amazonaws.com465yes
SES-US-EAST-2AWS SES US East (Ohio)email-smtp.us-east-2.amazonaws.com465yes
SES-US-GOV-EAST-1AWS SES GovCloud (US-East)email-smtp.us-gov-east-1.amazonaws.com465yes
SES-US-GOV-WEST-1AWS SES GovCloud (US-West)email-smtp.us-gov-west-1.amazonaws.com465yes
SES-US-WEST-1AWS SES US West (N. California)email-smtp.us-west-1.amazonaws.com465yes
SES-US-WEST-2AWS SES US West (Oregon)email-smtp.us-west-2.amazonaws.com465yes
SeznamSeznam.cz Emailsmtp.seznam.cz465yes
SMTP2GOSMTP2GOmail.smtp2go.com2525no
SparkpostSparkPostsmtp.sparkpostmail.com587no
ZimbraZimbra Mail Serversmtp.zimbra.com587norequireTLS
ZohoZoho Mailsmtp.zoho.com465yesauthMethod: LOGIN
TipimailTipimailsmtp.tipimail.com587no
TurboSMTPTurboSMTPpro.turbo-smtp.com465yes
TurboSMTP-EUTurboSMTP (EU region)pro.eu.turbo-smtp.com465yes
TutanotaTutanotasmtp.tutanota.com465yes
YahooYahoo Mailsmtp.mail.yahoo.com465yes
YandexYandex Mailsmtp.yandex.ru465yes