fix: forward SMTP attachments (#405)
* fix: forward SMTP attachments Entire-Checkpoint: 7d7cb24de113 * fix: redact SMTP attachment logs Entire-Checkpoint: 0b350a0d62e6 * fix: redact SMTP email logs Entire-Checkpoint: 05a0a1779c5e * Revert "fix: redact SMTP email logs" This reverts commit c3e6657c870a6a4b3768adb3e550c1ceda9ace2d. Entire-Checkpoint: 0225a4ef8dee * Revert "fix: redact SMTP attachment logs" This reverts commit 31e51d2ca01f4590f95448f72f7629cbc34ccd54. Entire-Checkpoint: ee934de340c7
This commit is contained in:
@@ -99,6 +99,13 @@ const serverOptions: SMTPServerOptions = {
|
||||
text: parsed.text,
|
||||
html: parsed.html,
|
||||
replyTo: parsed.replyTo?.text,
|
||||
attachments:
|
||||
parsed.attachments.length > 0
|
||||
? parsed.attachments.map((attachment, index) => ({
|
||||
filename: attachment.filename || `attachment-${index + 1}`,
|
||||
content: attachment.content.toString("base64"),
|
||||
}))
|
||||
: undefined,
|
||||
};
|
||||
|
||||
sendEmailToUseSend(emailObject, session.user)
|
||||
|
||||
Reference in New Issue
Block a user