How to send an email using Python?
To send an email in Python, follow these steps along with the code:
This is a test email message in Python.
smtpObj = smtplib.SMTP('localhost')
smtpObj.sendmail(sender, receivers, message)
print "Successfully sent the email"
print "Error display: Python is unable to send an email"