Advertisement
Guest User

Untitled

a guest
Oct 4th, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import smtplib
  2.  
  3. from email.mime.text import MIMEText
  4.  
  5. msg = MIMEText("Siema co tam")
  6.  
  7.  
  8. msg['Subject'] = 'Elo'
  9. msg['From'] = "elo@wp.pl"
  10. msg['To'] = "dupa1@onet.pl, ziomek@wp.pl"
  11.  
  12. s = smtplib.SMTP('smtp.adres.com')
  13. s.send_message(msg)
  14. s.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement