diff options
author | Maximilian Gass <mxey@ghosthacking.net> | 2009-07-24 14:58:38 +0200 |
---|---|---|
committer | Maximilian Gass <mxey@ghosthacking.net> | 2009-07-24 14:58:38 +0200 |
commit | 743cb0f08b5dae7dce197a075d550f857a1c478c (patch) | |
tree | ffc15df72d75385f443c902738aad3666e272e6e | |
parent | 8d77719ceec40ca02b45a571f6286ce7c65c77e5 (diff) |
Made SMTP Auth actually functional
-rwxr-xr-x | blogthon.cgi | 2 | ||||
-rw-r--r-- | configuration | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/blogthon.cgi b/blogthon.cgi index 6e32476..8318fdd 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -200,6 +200,8 @@ if cname and ctext and ctitle: if new_comment_mail: msg = 'From: Blogthon\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 stmp_pass != '': + smtp.login(smtp_user, smtp_pass) smtp.sendmail(blog_title, mail_to, msg) smtp.quit() diff --git a/configuration b/configuration index 481a79e..ed1c0d7 100644 --- a/configuration +++ b/configuration @@ -21,5 +21,5 @@ newest_first: True new_comment_mail= False mail_to= please@change.me!!! smtp_host= localhost -smtp_user= changeme -smtp_pass= changeme +smtp_user= +smtp_pass= |