jordan-wright / email

Robust and flexible email library for Go
MIT License
2.65k stars 321 forks source link

NewEmailFromReader now adds attachments to the created Email #89

Closed l-ross closed 4 years ago

l-ross commented 4 years ago

If the part has the header 'Content-Disposition' with a value of 'attachment' then add the part as an attachment to the Email.

This takes care of #82

jordan-wright commented 4 years ago

Hi there,

Sorry for responding to this so late. This LGTM- thank you for sending it in!