Python send mail using SMTP

SMTP – Simple Mail Transfer Protocol is used for sending e-mail and routing e-mail between mail servers. There is a module in python called stmplib which defines an SMTP client session object. Here is the example #!/usr/bin/python import smtplib client = smtplib.SMTP(‘smtp.gmail.com’, 587) sender=’your mail id’ password =’your mail password’ recipient =’recipient mail id ‘…

Details