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 repositoriesgithub.com/jordan-wright/email
- 1 reference in email_test.go
- 1 reference in operations/send-contacts-to-newsletter.go
- 1 reference in utils.go