I am trying to send email with below code.
import smtplib from email.mime.text import MIMEText sender = \'sender@sender.com\' def mail_me(cont, receiver):
The name comes from the FROM header. Refer to this answer please Specify a sender when sending mail with Python (smtplib)
FROM