diff options
author | cedricbonhomme <devnull@localhost> | 2012-04-22 23:11:17 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-04-22 23:11:17 +0200 |
commit | 9a54b553b63057b8173b1b7cf8065f3eb8057162 (patch) | |
tree | c66f2452b1cb634214e424c809bb7152f9ddb9a8 /source/utils.py | |
parent | Added conf.py which is responsible of the load of the configuration. (diff) | |
download | newspipe-9a54b553b63057b8173b1b7cf8065f3eb8057162.tar.gz newspipe-9a54b553b63057b8173b1b7cf8065f3eb8057162.tar.bz2 newspipe-9a54b553b63057b8173b1b7cf8065f3eb8057162.zip |
Updated default configuration file.
Diffstat (limited to 'source/utils.py')
-rwxr-xr-x | source/utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/utils.py b/source/utils.py index 9efe9d83..d1d2c684 100755 --- a/source/utils.py +++ b/source/utils.py @@ -54,6 +54,7 @@ from BeautifulSoup import BeautifulSoup from datetime import datetime from collections import Counter +import conf # regular expression to chech URL url_finders = [ \ @@ -209,8 +210,8 @@ def send_mail(mfrom, mto, feed_title, article_title, description): msg.attach(part2) # Send the message via local SMTP server. - s = smtplib.SMTP(smtp_server) - s.login(username, password) + s = smtplib.SMTP(conf.smtp_server) + s.login(conf.username, conf.password) # 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()) |