aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <gideonstar@thehappy.de>2009-07-28 10:36:44 +0200
committerStefan Ritter <gideonstar@thehappy.de>2009-07-28 10:36:44 +0200
commit57ead808531109b3bfc9cc856cb4d01fc1395cf1 (patch)
tree195b478cecd86ea897ee0e53ace1d9d25942eb3e
parentf238407d5e81e1f16d7e3f97875d50d26442ade0 (diff)
Added 'To:' header entry for outgoing mails
-rwxr-xr-xblogthon.cgi2
1 files changed, 1 insertions, 1 deletions
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)