[Email-SIG] smtplib and getting a copy ?
Mark Sapiro
msapiro at value.net
Fri Apr 14 03:55:01 CEST 2006
Lukasz Szybalski wrote:
>
>Although that works to get what i created i also need to get :
>Date: Thu, 13 Apr 2006 11:11:17 -0700 (PDT)
>Message-Id: <443e9445.2a2d498e.545b.68b7SMTPIN_ADDED at mx.gmail.com>
>
>Anyway to do it? Does smtplib have a way to return exact thing it is sending?
smtlib sends exactly what you give it. If you don't put Date: and
Message-Id: headers in the message you pass to smtplib, your outgoing
MTA adds them and the smtplib methods have no way to know what they
are.
If your application needs to know them, it has to create them and put
them in the message as suggested by Matthew in another reply.
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Email-SIG
mailing list