[docs] Missing header "Date" in email: Examples

Jonathan Golder hallo at golderweb.de
Fri Jan 19 15:14:49 EST 2018


Hello,

as RFC2822 (https://tools.ietf.org/html/rfc2822.html) states out in
section /3.6 Field definitions, /the header field "Date" is mandatory.

This should be reflected in the examples shown on
https://docs.python.org/3.6/library/email-examples.html. For example by
adding a line like

    msg["Date"] = email.utils.format_datetime(email.utils.localtime())

to each example.

Regards

Jonathan Golder

-- 
	GOLDERWEB
	Jonathan Golder
	In den Geißhecken 15
	73614 Schorndorf
	
E-Mail:	hallo at golderweb.de
Web:	http://golderweb.de




More information about the docs mailing list