smtp python gmail code example
Example: how to send a gmail using python
import smtplib
content = "text"
mail = smtplib.SMTP('smtp.gmail.com', 587)
mail.ehlo()
mail.starttls()
mail.login('username', 'password')
mail.sendmail('sender', 'receiver', content)
mail.close()