[issue28879] smtplib RFC 5322 date header missing

2016-12-06 Thread Henning von Bargen
Henning von Bargen added the comment: I can give a little more information. First, I created a very simple stand-alone test script (for Python >= 2.6): #!/bin/env python # -*- coding: utf-8 -*- import smtplib # Adjust these! HOST = "smtp.nowhere.local" PORT = 25 from_name = u"Test Python smt

[issue28879] smtplib RFC 5322 date header missing

2016-12-05 Thread R. David Murray
R. David Murray added the comment: That is correct. Most SMTP gateways add the header on submission if it is missing. At least a few other MUA programs do not automatically add the Date header, they let the SMTP server do it. I have one person who sends me email that saw this same problem (

[issue28879] smtplib RFC 5322 date header missing

2016-12-05 Thread Henning von Bargen
New submission from Henning von Bargen: 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