Commit e2d18d97 authored by Jérome Perrin's avatar Jérome Perrin

connect with the smtp_host


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35701 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f16d5d1
......@@ -80,7 +80,7 @@ def sendMail(subject,
msg.set_payload(body)
# Send the email via SMTP server.
s = smtplib.SMTP(smtp_host)
s.connect()
s = smtplib.SMTP()
s.connect(smtp_host)
s.sendmail(from_mail, to_mail, msg.as_string())
s.close()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment