From 743cb0f08b5dae7dce197a075d550f857a1c478c Mon Sep 17 00:00:00 2001 From: Maximilian Gass Date: Fri, 24 Jul 2009 14:58:38 +0200 Subject: Made SMTP Auth actually functional --- blogthon.cgi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'blogthon.cgi') 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() -- cgit v1.2.3