mysql-backup4j is a library for programmatically exporting mysql databases and sending the zipped dump to email, Amazon S3, Google Drive or any other cloud storage of choice
I forgot to mention that I found this issue using the yahoo SMTP since gmail will stop working with the less security option at the end of current month.
Allows specify an specific SSL protocol like = TLSv1.2