aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-23 23:49:31 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-23 23:49:31 +0100
commit1d46328d581e65aa3081ca55e140b48f9b6333fa (patch)
tree27cf1c807eeaa267ddaf70854f255424af0c2844 /source
parentAdded agin '-tt' option through subprocess.Popen in pyAggr3g470r (diff)
downloadnewspipe-1d46328d581e65aa3081ca55e140b48f9b6333fa.tar.gz
newspipe-1d46328d581e65aa3081ca55e140b48f9b6333fa.tar.bz2
newspipe-1d46328d581e65aa3081ca55e140b48f9b6333fa.zip
test of send_mail()
Diffstat (limited to 'source')
-rwxr-xr-xsource/utils.py3
1 files changed, 2 insertions, 1 deletions
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):
bgstack15