Send email in Python conveniently for gmail using yagmail
The goal here is to make it as simple and painless as possible to send emails.
In the end, your code will look something like this:
For Python 2.x and Python 3.x respectively:
Defining some variables…