From 1d46328d581e65aa3081ca55e140b48f9b6333fa Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 23 Jan 2013 23:49:31 +0100 Subject: test of send_mail() --- source/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/utils.py b/source/utils.py index 24d6c538..115fffd9 100755 --- a/source/utils.py +++ b/source/utils.py @@ -176,7 +176,8 @@ def send_mail(mfrom, mto, feed_title, article_title, description): else: # sendmail function takes 3 arguments: sender's address, recipient's address # and message to send - here it is sent as one string. - s.sendmail(mfrom, mto, msg.as_string()) + #s.sendmail(mfrom, mto, msg.as_string()) + s.send_message(msg) s.quit() def add_feed(feed_url): -- cgit