Added optional reply to address
This commit is contained in:
@@ -19,3 +19,4 @@ SMTP_PORT=
|
||||
SMTP_USERNAME=
|
||||
SMTP_PASSWORD=
|
||||
SMTP_SENDER_EMAIL=
|
||||
SMTP_REPLY_TO=
|
||||
@@ -49,6 +49,7 @@ Object {
|
||||
</body>
|
||||
</html>
|
||||
",
|
||||
"replyTo": "hello@example.com",
|
||||
"subject": "Welcome to Outline",
|
||||
"text": "
|
||||
Welcome to Outline!
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user