From 57ead808531109b3bfc9cc856cb4d01fc1395cf1 Mon Sep 17 00:00:00 2001 From: Stefan Ritter Date: Tue, 28 Jul 2009 10:36:44 +0200 Subject: [PATCH] Added 'To:' header entry for outgoing mails --- blogthon.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blogthon.cgi b/blogthon.cgi index 8deb211..a063c8a 100755 --- a/blogthon.cgi +++ b/blogthon.cgi @@ -199,7 +199,7 @@ if cname and ctext and ctitle: content.close() # Send mail? 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) + 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)