Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Proposal] func (*Email) SetBodyData(contentType contentType, body []byte) *Email #36

Closed
hiendv opened this issue Apr 29, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@hiendv
Copy link

hiendv commented Apr 29, 2021

Hi,
I would like to propose a small feature to the current API by providing

func (*Email) SetBodyData(contentType contentType, body []byte) *Email

to initialize body part buffer with byte slice instead of a string.
It would help reducing the memory allocation when converting a []byte -> string -> []byte buffer.
Thanks again.

@xhit xhit added the enhancement New feature or request label Apr 29, 2021
@xhit xhit closed this as completed in 25d5f5b May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants