L
LutherRevisited
I'm trying to send an email this way:
msg = MIMEText(self.text_ctrl_1.GetValue())
msg['Subject'] = sub
msg['From'] = '(e-mail address removed)'
msg['To'] = to
s = smtplib.SMTP('smtp.mail.yahoo.com')
s.set_debuglevel(1)
s.connect()
s.sendmail('(e-mail address removed)', to, msg)
s.quit()
but this is not working at all. Can someone point me in the right direction?
msg = MIMEText(self.text_ctrl_1.GetValue())
msg['Subject'] = sub
msg['From'] = '(e-mail address removed)'
msg['To'] = to
s = smtplib.SMTP('smtp.mail.yahoo.com')
s.set_debuglevel(1)
s.connect()
s.sendmail('(e-mail address removed)', to, msg)
s.quit()
but this is not working at all. Can someone point me in the right direction?