Entries from 2017-11-18 to 1 day

How to send an email from Gmail by Python.

usage $ python3 sample.py sample.py """Send an email from Gmail. Before execute this code, turn on the flag "Allow less secure apps" from the follwoing link. https://myaccount.google.com/lesssecureapps """ import smtplib import email.mime.…