v2.9.0
This version add a new API for attachments called Attach
that receive a new public struct called File
with the file to attach. The old APIs are deprecated.
Added a new API SetBodyData
to set body from []byte
to help reducing the memory allocation when converting a []byte
-> string
-> []byte buffer
. #36
Also, thanks to @jlinnosa to help with these changes and the new Attach
API:
- Implement inline attachment support for Base64 encoded strings with new API
func (email *Email) AddInlineBase64(b64File string, name string, mimeType string)
- Refactor attachments and test added.