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_PORT=
SMTP_USERNAME= SMTP_USERNAME=
SMTP_PASSWORD= SMTP_PASSWORD=
SMTP_SENDER_EMAIL= SMTP_SENDER_EMAIL=
SMTP_REPLY_TO=

View File

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

View File

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