Skip to content

Instantly share code, notes, and snippets.

View cuijiudai's full-sized avatar
💭
I may be slow to respond.

独孤逸辰 cuijiudai

💭
I may be slow to respond.
  • Haier
  • Qingdao China
View GitHub Profile
rsa==3.1.1
requests==1.2.3
def try_sending_email():
import os, smtplib, mimetypes
from email.MIMEMultipart import MIMEMultipart
from email.MIMEBase import MIMEBase
from email.MIMEText import MIMEText
from email.Encoders import encode_base64
gmail_user = '[user]@gmail.com'
gmail_password = '[password]'
recipient = '[recipient]'
msg = MIMEMultipart()