March 2019
Beginner
490 pages
12h 40m
English
Python provides the smtplib module for working with the SMTP protocol. You can transmit messages by calling the sendmail() method of SMTP objects. Let's look at how we can using it to send an email with this module:
The syntax for creating a SMTP object is as follows:
import smtplibsmtpObj = smtplib.SMTP([host[,port[,local_hostname]]])
Let's look at what each parameter in the preceding code in more detail:
Read now
Unlock full access