Link to entry in new-comment-mail parsed through re.sub
This commit is contained in:
parent
57b8c5aaca
commit
8d77719cee
@ -198,7 +198,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=' + ctitle
|
||||
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)
|
||||
smtp.sendmail(blog_title, mail_to, msg)
|
||||
smtp.quit()
|
||||
|
Loading…
Reference in New Issue
Block a user