diff options
author | Stefan Ritter <gideonstar@thehappy.de> | 2009-07-28 10:36:44 +0200 |
---|---|---|
committer | Stefan Ritter <gideonstar@thehappy.de> | 2009-07-28 10:36:44 +0200 |
commit | 57ead808531109b3bfc9cc856cb4d01fc1395cf1 (patch) | |
tree | 195b478cecd86ea897ee0e53ace1d9d25942eb3e /blogthon.cgi | |
parent | f238407d5e81e1f16d7e3f97875d50d26442ade0 (diff) |
Added 'To:' header entry for outgoing mails
Diffstat (limited to 'blogthon.cgi')
-rwxr-xr-x | blogthon.cgi | 2 |
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) |