Added optional reply to address
This commit is contained in:
parent
f8cde17062
commit
95a395aa95
|
@ -18,4 +18,5 @@ SMTP_HOST=
|
|||
SMTP_PORT=
|
||||
SMTP_USERNAME=
|
||||
SMTP_PASSWORD=
|
||||
SMTP_SENDER_EMAIL=
|
||||
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