Closed thatisuday closed 6 years ago
in the message
object in this example you'll need to add property
attachments
which is an Array
https://github.com/niftylettuce/email-templates/blob/master/README.md#basic
please see Nodemailer docs at this page for more info:
https://nodemailer.com/message/attachments/
On Jan 12, 2018 5:28 AM, "Uday Hiwarale" notifications@github.com wrote:
I want to send some files with the email? Where to put them?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/niftylettuce/email-templates/issues/272, or mute the thread https://github.com/notifications/unsubscribe-auth/AAf7hbfb_e_WY4zCErLZjLdD9ahaXN3tks5tJzPegaJpZM4RcGLe .
@niftylettuce Thanks a lot. Great work.
@niftylettuce It will be great if you can update Readme regarding this
Hi @thatisuday thanks for letting me know. I've done so, please see https://github.com/niftylettuce/email-templates#attachments.
If you spot any errors please advise. Thanks!
Great. Is there any way we can add attachments to email.send
rather than
new Email
instance. Because, in my case attachments can vary depending on
whom to send. Is there any provision for that in future release?
Yes just include it in email.send
not when making new Email
and it will be individual
@niftylettuce Nodemailer attachments are working except attachment url or with href
option. https://nodemailer.com/message/attachments/ Can you please check this?
@niftylettuce I am getting this in preview but no attachment receive when tried to send to gmail. I am using aws and cloudfront. Everything is working fine like embedded images.
Problem seems to be with nodemailer itself.
okay keep posted here if you find solution, thank you
@niftylettuce Problem seems to be with https://github.com/orliesaurus/nodemailer-mailgun-transport/issues/16
I want to send some files with the email? Where to put them?