Author Henning.von.Bargen
Recipients Henning.von.Bargen
Date 2016-12-05.15:48:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'm using CPython 2.7 with the smtplib and email modules to send emails with SMTP.
Today, one of our clients complained that the email sent is not RFC 5322 compliant because the required Date header is missing. The RFC states in section 3.6.:

"The only required header fields are the origination date field and
 the originator address field(s).  All other header fields are
  syntactically optional."

Our program has been sending millions of email message this way and this is the first complaint.

I guess that the library doesn't add the header field automatically.
Date User Action Args
2016-12-05 15:48:15Henning.von.Bargensetrecipients: + Henning.von.Bargen
2016-12-05 15:48:15Henning.von.Bargensetmessageid: <>
2016-12-05 15:48:15Henning.von.Bargenlinkissue28879 messages
2016-12-05 15:48:14Henning.von.Bargencreate