1
mirror of git://git.acid.vegas/random.git synced 2024-11-14 12:06:38 +00:00
random/gmail.py

5 lines
222 B
Python

#!/usr/bin/env python
import smtplib,sys
with smtplib.SMTP_SSL('smtp.gmail.com',465) as server:
server.login('username@gmail.com','password')
server.sendmail('username@gmail.com','target@mail.com',' '.join(sys.argv[1:]))