Sending Some E-Mail : Email : Network PYTHON examples


PYTHON examples » Network » Email »

 

Sending Some E-Mail


 
fromAddress = 'sender@example.com'
toAddress = 'me@my.domain'
msg = "Subject: HellonnThis is the body of the message."

import smtplib
server = smtplib.SMTP("localhost"25)
server.sendmail(fromAddress, toAddress, msg)

   
  



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Network
» Email