Advertisement
nightcrow100

python-emails

Apr 15th, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. import emails
  2. message = emails.html(subject='Friday party', text='Hello', mail_from=('Company Team', 'nightcrow100@gmail.com'))
  3.  
  4. r = message.send(to='nightcrow100@gmail.com', mail_from='nightcrow100@gmail.com',
  5.              smtp={'host':'smtp.gmail.com', 'port': 587, 'user': 'username', 'password': '*****'})
  6.  
  7. print r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement