[Email-SIG] smtplib and getting a copy ?
Mark Sapiro
msapiro at value.net
Fri Apr 14 04:47:31 CEST 2006
Mark Sapiro wrote:
>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.
Actually, I looked a little more closely, and in your particular case
above it seems that at least the Message-Id: header was not added
until the message reached gmail.com.
--
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