Remove content type from email attachment

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-02-20 14:30:43 +01:00
parent ac7fdd2566
commit 9ec950d633
4 changed files with 23 additions and 27 deletions

View File

@@ -180,8 +180,8 @@ func (m *Mailer) batchSendEmails(ctx context.Context) error {
return fmt.Errorf("cannot download attachment %s: %w", att.Filename, err)
}
// TODO [esign] maybe use AddAttachmentWithReader instead?
mail = mail.AddAttachment(data, att.ContentType, att.Filename)
// TODO [esign] maybe use AddAttachmentWithReader instead?
mail = mail.AddAttachment(data, file.MimeType, att.Filename)
}
envelope, err := mail.Build()