+

Add required Date header

Benjamin Renard [2015-07-30 09:04:44]
Add required Date header
Filename
smtpt
diff --git a/smtpt b/smtpt
index b0fb949..e1745c1 100755
--- a/smtpt
+++ b/smtpt
@@ -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) )
ViewGit