Mail not setting timestamp

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 7 01:19:12 EDT 2007


Lorenzo Thurman wrote:

> I'm using the Mimewriter and mimetools modules to create html messages.
> They work OK, except that when the messages are received, they always
> have the timestamp of 12/31/1969. I've looked through both packages and
> can't find anything that would allow me to manually set it. Can someone
> help me out?

The date goes into the message headers, like From, To, Subject...
message.add_header("Date", "Thu, 22 Jun 2006 23:18:15 -0300")

--
Gabriel Genellina




More information about the Python-list mailing list