mailTransport

mailTransport

To use this setting you must install the nodemailer npm package into your Profound.js instance directory. For more information on this package, see https://www.npmjs.com/package/nodemailer.

Description

Specifies the Nodemailer SMTP transport details used by the pjs.sendEmail() API.

Example

Connect to an SMTP relay on port 587 using STARTTLS (secure: false means the connection is upgraded rather than TLS-from-the-start, which is the usual setting for port 587):

Sample configuration
"mailTransport": { "host": "smtp.example.com", "port": 587, "secure": false, "auth": { "user": "my_user", "pass": "my_pwd" } }

Because config.js is ordinary JavaScript, the password can be read from an environment variable instead of being stored in the file – for example "pass": process.env.SMTP_PASSWORD.

For information on how to modify this setting, see Configuration File.