Added optional reply to address
This commit is contained in:
@@ -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=
|
||||||
@@ -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!
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user