You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you can make mail.contentType enum public, we can hold plain text or html formats in enum instead of integer values.
Right now, we do:
// Check Content Type
if message.ContentType == 1 {
// Set Body HTML String
email.SetBody(mail.TextHTML, message.Body)
} else {
// Set Body Plain String
email.SetBody(mail.TextPlain, message.Body)
}
What I want to do, is setting message.ContentType as mail.ContentType, so I can use directly:
email.SetBody(message.ContentType, message.Body)
If you accept this suggestion, I can prepare a PR.
Thanks.
The text was updated successfully, but these errors were encountered:
First of all, thank you for this great library.
If you can make mail.contentType enum public, we can hold plain text or html formats in enum instead of integer values.
Right now, we do:
What I want to do, is setting message.ContentType as mail.ContentType, so I can use directly:
email.SetBody(message.ContentType, message.Body)
If you accept this suggestion, I can prepare a PR.
Thanks.
The text was updated successfully, but these errors were encountered: