* Refactor plugin to be compatible with Drone 0.5
* Add vendor files
* Re-add logo.svg, make loading environment from .env file optional, and use drone-go/template
* Fix README
* Fix issue with date formatting, update the DOCS, and improve types
* Add working directory and volume mount to README example
Even if .drone.yml does not specify username and password,
gomail.NewPlainDialer is still populated with them - albeit empty -
which means they are still being sent to SMTP server. In case of
Google's smtp-relay.gmail.com this will result in an error, even
if CI's server IP address is added to exclusion list allowing it to
skip auth entirely.
This commit constructs gomail.Dialer without username and password
if there was no username found in .drone.yml.
* Constructs gomail.Dialer without username when no username in .drone.yml
* Replaces gomail.NewPlainDialer with gomail.NewDialer
I have switched the mail sending mechanism to gomail to get more power
out of the sending method. Beside that I have added a flag to skip
certificate verification.
On top of that I have integrated the drone templating to make it
possible to overwrite the email templates optionally.
To be more compatible I have created a plaintext message format with the
help of html2text as well.