Fixed typo (stmp -> smtp)
This commit is contained in:
parent
743cb0f08b
commit
a328abe745
@ -200,7 +200,7 @@ if cname and ctext and ctitle:
|
|||||||
if new_comment_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\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 = smtplib.SMTP(smtp_host)
|
||||||
if smtp_user != '' and stmp_pass != '':
|
if smtp_user != '' and smtp_pass != '':
|
||||||
smtp.login(smtp_user, smtp_pass)
|
smtp.login(smtp_user, smtp_pass)
|
||||||
smtp.sendmail(blog_title, mail_to, msg)
|
smtp.sendmail(blog_title, mail_to, msg)
|
||||||
smtp.quit()
|
smtp.quit()
|
||||||
|
Loading…
Reference in New Issue
Block a user