Hereby we shall try to understand a very basic program to send mail using python library smtplib
The smtplib in python defines a client object that can be used to send mail to any internet machine a SMTP listener daemon.
1. Create an SMTP object.
import smtplib
smtpObj=smtplib.SMTP(host,portNo);
Note that host or port number are optional.
host: the server where SMTP is running. example: smtp.gmail.com
port number: the port number where SMTP server is listening.
...
Read more »