xhit / go-simple-mail

Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP.
MIT License
650 stars 102 forks source link

improve contenttype api usage #63

Closed yusufozturk closed 2 years ago

yusufozturk commented 2 years ago

This PR improves email API to allow contentType as enum. Previously the libary was only allowing integer. It will help people to write cleaner code when they integrate their application with this library.

There are also some styling updates. They are done by auto-styling. I believe they are okay.

Here is the issue: https://github.com/xhit/go-simple-mail/issues/62

Thanks.