Removed smtp auth as long as configuration is world readable

This commit is contained in:
Stefan Ritter 2009-11-01 15:39:13 +01:00
parent 50f6f862f6
commit 420347a05f
2 changed files with 0 additions and 10 deletions

View File

@ -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:

View File

@ -21,5 +21,3 @@ newest_first: True
new_comment_mail: False
mail_to: please@change.me!!!
smtp_host: localhost
smtp_user:
smtp_pass: