mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
feat: Add optional replyTo for email sending
This commit is contained in:
1 parent
ee8324ad73
commit
c08940ca3c
1 file changed
+3
-2
@@ -11,6 +11,7 @@ const useTestEmailService =
|
||||
|
||||
type SendMailOptions = {
|
||||
to: string;
|
||||
replyTo?: string;
|
||||
subject: string;
|
||||
previewText?: string;
|
||||
text: string;
|
||||
@@ -70,8 +71,8 @@ export class Mailer {
|
||||
try {
|
||||
Logger.info("email", `Sending email "${data.subject}" to ${data.to}`);
|
||||
const info = await transporter.sendMail({
|
||||
from: `Outline <${env.SMTP_FROM_EMAIL}>`,
|
||||
replyTo: env.SMTP_REPLY_EMAIL ?? env.SMTP_FROM_EMAIL,
|
||||
from: env.SMTP_FROM_EMAIL,
|
||||
replyTo: data.replyTo ?? env.SMTP_REPLY_EMAIL ?? env.SMTP_FROM_EMAIL,
|
||||
to: data.to,
|
||||
subject: data.subject,
|
||||
html,
|
||||
|
||||
Reference in new issue
Block a user