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):
This should fix it:
Replace mail_me(cont,['xyz@xyzcom']) with
mail_me(cont,['xyz@xyzcom'])
mail_me(cont,'xyz@xyz.com')