Description

AttachFile is used to attach content to the email. It attempts to open the file referenced by filename and, if successful, creates an Attachment. This Attachment is then appended to the slice of Email.Attachments. The function will then return the Attachment for reference, as well as nil for the error, if successful.

AttachFile is referenced in 3 repositories

github.com/jordan-wright/email github.com/dfreire/sunny

...