Python Send Email SMTP Example
Description
Python SMTP email sending example for automation scripts.
Python Send Email SMTP Example.py
import smtplib
server = smtplib.SMTP('smtp.gmail.com',587)
server.starttls()
server.login('email@gmail.com','password')
server.sendmail(
'email@gmail.com',
'target@gmail.com',
'Hello from Python'
)
server.quit()
Comments (0)
Add CommentNo comments yet. Be the first to comment!