Skip to content
Henry Gressmann edited this page Jul 31, 2016 · 1 revision

Currently, we only support email services who support smpt, direct or xoauth. If you want to use something else, please open an issue and we might add it.

Direct

Although direct is the default option, we don't recommend to use it. When using direct mode, the emails are send directly by the server so they'll most likely never reach the user or end up in their spam folder. When using direct mode, set transport: "direct" and options: {}

Smtp

Smtp is the most popular way to send emails. A good free option would be SparkPost where you get 100k emails/month.

transport: "smtp" // 'smtp', 'direct' or 'xoauth'
options: {
	service: "sparkpost"
 	auth: {
 		user: "SMTP_Injection"
  		pass: "verrylongpassword"
    }
}

Here's a list of all included services.

To use Gmail you may need to configure "Allow Less Secure Apps" in your Gmail account unless you are using 2FA in which case you would have to create an Application Specific password. You also may need to unlock your account with "Allow access to your Google account" to use SMTP.

Xoauth

More infos

-- XOAUTH2 --
transport: "xoauth"
options: {
	service: "gmail"
	auth: {
		xoauth: {
			user: '{username}'
			clientId: '{Client ID}'
			clientSecret: '{Client Secret}'
			refreshToken: '{refresh-token}'
			accessToken: '{cached access token}'
		}
	}
}
Clone this wiki locally