I am trying to learn about how to send emails using Python. Using scripts from Tutorial's Point, and Stack Overflow I have created a basic script which can send emails using Gmail. I have a few questions about several lines of code. They appear to be communicating with the Gmail Server.
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
What does server.ehlo
mean? Is it specific to gmail?
server.starttls()
What does this mean?
server.login(username,password)
server.sendmail(fromaddr, toaddrs, msg)
server.quit()
What is server.quit()
?