7 mar 2016 - There are quite a few ways to send email with Python, whether it be . As for the actual Python code, all you need to do is call the login method:.