Add required Date header

This commit is contained in:
Benjamin Renard 2015-07-30 11:04:44 +02:00
parent 0312eca71a
commit bdb3eca543

1
smtpt
View file

@ -192,6 +192,7 @@ msg['From'] = email.utils.formataddr(('Author', options.author))
logging.info("From : %s" % options.author)
msg['Subject'] = options.subject
logging.info("Subject : %s" % options.subject)
msg['Date'] = email.utils.formatdate(None,True)
msg.attach( MIMEText(options.content) )