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.
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.