diff options
author | lowercasename <raphaelkabo@gmail.com> | 2020-06-13 13:36:28 +0100 |
---|---|---|
committer | lowercasename <raphaelkabo@gmail.com> | 2020-06-13 13:36:28 +0100 |
commit | b24c5910463453e14be965893cd2a50859a945dd (patch) | |
tree | 8f71651b25c2ab031f4beba40d78d6c1a874d62d /config | |
parent | 030e2b3575a856c6fae65848b82626dde888a8c8 (diff) |
Added Nodemailer as an SMTP service
Diffstat (limited to 'config')
-rw-r--r-- | config/api-example.js | 7 | ||||
-rw-r--r-- | config/domain-example.js | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/config/api-example.js b/config/api-example.js index 4df7ba3..9202f0a 100644 --- a/config/api-example.js +++ b/config/api-example.js @@ -1,3 +1,8 @@ +// Which of these fields are used depends on the 'mailService' config entry in config/domain.js module.exports = { - 'sendgrid' : '' // SendGrid API key goes here + 'sendgrid' : '', // If using SendGrid, the Sendgrid API key goes here + 'smtpServer': '', // If using Nodemailer, your SMTP server hostname goes here + 'smtpPort': '', // If using Nodemailer, your SMTP server port goes here + 'smtpUsername': '', // If using Nodemailer, your SMTP server username goes here + 'smtpPassword': '' // If using Nodemailer, your SMTP password goes here }; diff --git a/config/domain-example.js b/config/domain-example.js index c019a4a..9b672aa 100644 --- a/config/domain-example.js +++ b/config/domain-example.js @@ -3,6 +3,7 @@ module.exports = { 'domain' : 'localhost:3000' , 'port': '3000', 'email': 'contact@example.com', + 'mailService': 'nodemailer', // Which mail service to use to send emails to attendees. Options are 'nodemailer' or 'sendgrid'. Configure settings for the mail service in config/api.js.z 'sitename': 'gathio', 'isFederated': true, // If left blank, this defaults to https://yourdomain.com/images/gathio-email-logo.gif. Set a full URL here to change it to your own logo (or just change the file itself) |