Added optional reply to address

This commit is contained in:
Jori Lallo 2017-11-12 17:27:51 -08:00
parent f8cde17062
commit 95a395aa95
3 changed files with 4 additions and 1 deletions

View File

@ -18,4 +18,5 @@ SMTP_HOST=
SMTP_PORT=
SMTP_USERNAME=
SMTP_PASSWORD=
SMTP_SENDER_EMAIL=
SMTP_SENDER_EMAIL=
SMTP_REPLY_TO=

View File

@ -49,6 +49,7 @@ Object {
</body>
</html>
",
"replyTo": "hello@example.com",
"subject": "Welcome to Outline",
"text": "
Welcome to Outline!

View File

@ -46,6 +46,7 @@ class Mailer {
try {
await transporter.sendMail({
from: process.env.SMTP_SENDER_EMAIL,
replyTo: process.env.SMTP_REPLY_TO || process.env.SMTP_SENDER_EMAIL,
to: data.to,
subject: data.title,
html: html,