Skip to content

Commit 67f42b7

Browse files
committed
Set X-Original-From header
1 parent 71381cc commit 67f42b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/send-mail.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ export async function sendMail(mail: IParsedMBox,
194194
to: mail.to,
195195
},
196196
raw: mail.raw,
197+
headers: [{
198+
key: "X-Original-From",
199+
value: mail.from ?? "",
200+
}]
197201
};
198202

199203
transporter.sendMail(mailOptions, (error, info: { messageId: string })

0 commit comments

Comments
 (0)