On Thu, 2006-04-13 at 12:47 -0500, Lukasz Szybalski wrote:

> I am sending an email with smtplib, and i need to get a copy of what i
> have sent out.
> Is there a way to do it?
> 
> I am storing the information into a database so I need to get message
> id, time etc from the message that gets sent out.

Do you want the mail server to send you a copy, or do you want a copy of
what you send to the mail server?  If the former, just add a BCC header
and include the return address you want the copy sent to.  If the
latter, just do str(msg) to get the text.

-Barry

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Email-SIG mailing list
[email protected]
Your options: 
http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com

Reply via email to