aboutsummaryrefslogtreecommitdiffstats
path: root/blogthon.cgi
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2009-11-01 15:39:13 +0100
committerStefan Ritter <xeno@thehappy.de>2009-11-01 15:39:13 +0100
commit420347a05fb2dfeed63ed1e9c41f5d87128eeca7 (patch)
treea1e0a19e094fcfa5e54ca92b32c76f9006c450c1 /blogthon.cgi
parent50f6f862f68aa8ac661327745c0291b162824f64 (diff)
Removed smtp auth as long as configuration is world readable
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-xblogthon.cgi8
1 files changed, 0 insertions, 8 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index f34b889..a9bafa3 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -129,12 +129,6 @@ except: errorpage("mail_to")
try: smtp_host = configuration.get('smtp', 'smtp_host')
except: errorpage("smtp_host")
-try: smtp_user = configuration.get('smtp', 'smtp_user')
-except: errorpage("smtp_user")
-
-try: smtp_pass = configuration.get('smtp', 'smtp_pass')
-except: errorpage("smtp_pass")
-
# Read POST Variables
action = cgi.FieldStorage()
month_display = action.getvalue('m')
@@ -201,8 +195,6 @@ if cname and ctext and ctitle:
if new_comment_mail:
msg = 'From: Blogthon\nTo: ' + mail_to + '\nSubject: New comment on ' + blog_title + '\n\nSomeone wrote a comment to this entry: ' + blog_url + '?p=' + re.sub(' ', '-', ctitle)
smtp = smtplib.SMTP(smtp_host)
- if smtp_user != '' and smtp_pass != '':
- smtp.login(smtp_user, smtp_pass)
smtp.sendmail(blog_title, mail_to, msg)
smtp.quit()
except: