Skip to content

Instantly share code, notes, and snippets.

@woulfe68
woulfe68 / python_gmail_email_sender.py
Last active July 27, 2019 04:31
Send an email with a gmail account using python 3
import smtplib
TO = ['recipient_1@gmail.com', 'recipient_2@gmail.com']
# ^^^ doesnt matter how many you put in
SUBJECT = 'EXAMPLE SUBJECT'
TEXT = 'example text to recipients'
gmail_user = "user@gmail.com"
gmail_password = "password"