"Philippe C. Martin" <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I am testing the smtp module and have the following question:
>
>in the code below (taken from net sample) prior to adding the "Subject:"
>field, the email client found the "From" and the "To". Without the
>"Subject:" field on I get this:
>
>
Philippe C. Martin wrote:
Hi,
I am testing the smtp module and have the following question:
in the code below (taken from net sample) prior to adding the "Subject:"
field, the email client found the "From" and the "To". Without the
"Subject:" field on I get this:
Email client = Evolution: the "From
Thank you all for your help - an yes! the email module is _very_ nice.
Regards,
Philippe
--
***
Philippe C. Martin
SnakeCard LLC
www.snakecard.com
***
--
http://mail.python.org/mailman/listinfo/python-list
"Philippe C. Martin" <[EMAIL PROTECTED]> writes:
> Hi,
>
> I am testing the smtp module and have the following question:
>
> in the code below (taken from net sample) prior to adding the "Subject:"
> field, the email client found the "From" and the "To". Without the
> "Subject:" field on I get thi
Philippe,
Looks like the problem lies where you have added the Subject header.
You have terminated it with a \n\n and then your From and To headers.
You may want to rewrite it as:
server.sendmail(fromaddr, toaddrs, 'Subject:from python\r\n'+msg)
Why dont you consider using the email module -
ht
Hi,
I am testing the smtp module and have the following question:
in the code below (taken from net sample) prior to adding the "Subject:"
field, the email client found the "From" and the "To". Without the
"Subject:" field on I get this:
Email client = Evolution: the "From" field is blank
Email