Closed antitoine closed 4 years ago
I'm pretty sure this is due to JSON transport being the default for preview, care to submit a PR that fixes?
I have just release preview-email
v2.0.0 and version bumped it in email-templates
, and released email-templates
v7.0.0 🎉
Ref:
Stream attachments should work great now @antitoine - just version bump and install latest in your project
Hi, thank you for the fix.
Indeed upgrade to v7.0.2 resolve the stream issue and the attachment is OK.
But now, the promise when we call send
method is never released.
So I can't stay on the 7.0.2 for now...
Maybe this need to be in another issue ?
This should be fixed btw, not sure what your issues is @antitoine ?
Can you give an example? Sounds like a different problem?
Hi. Opened another issue for what @antitoine is describing, as facing the same issue: https://github.com/forwardemail/email-templates/issues/392
See my comment here https://github.com/forwardemail/email-templates/issues/392#issuecomment-634937183.
You are using the nodemailer option incorrectly. You cannot use jsonTransport with streams. It does not support it.
Hi, When I try to add an attachment to the email that comes from a stream, the attachment appears undefined in the preview in the browser (see the screenshot attached). However, when the mail is sent (I use AWS SES), the problem is not present and the attachment is correct.