Add required Date header
This commit is contained in:
parent
0312eca71a
commit
bdb3eca543
1 changed files with 1 additions and 0 deletions
1
smtpt
1
smtpt
|
@ -192,6 +192,7 @@ msg['From'] = email.utils.formataddr(('Author', options.author))
|
||||||
logging.info("From : %s" % options.author)
|
logging.info("From : %s" % options.author)
|
||||||
msg['Subject'] = options.subject
|
msg['Subject'] = options.subject
|
||||||
logging.info("Subject : %s" % options.subject)
|
logging.info("Subject : %s" % options.subject)
|
||||||
|
msg['Date'] = email.utils.formatdate(None,True)
|
||||||
|
|
||||||
|
|
||||||
msg.attach( MIMEText(options.content) )
|
msg.attach( MIMEText(options.content) )
|
||||||
|
|
Loading…
Reference in a new issue