[Erp5-report] r35701 jerome - /erp5/trunk/products/ERP5Type/tests/sendMail.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri May 28 10:06:31 CEST 2010
Author: jerome
Date: Fri May 28 10:06:24 2010
New Revision: 35701
URL: http://svn.erp5.org?rev=35701&view=rev
Log:
connect with the smtp_host
Modified:
erp5/trunk/products/ERP5Type/tests/sendMail.py
Modified: erp5/trunk/products/ERP5Type/tests/sendMail.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/sendMail.py?rev=35701&r1=35700&r2=35701&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/sendMail.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/sendMail.py [utf8] Fri May 28 10:06:24 2010
@@ -80,7 +80,7 @@
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()
More information about the Erp5-report
mailing list