Got it fixed. It was a very silly mistake. mssg variable had each line with
indent. Removed the indent and it worked.
Regards,
Kurian Thayil.
On Tue, Sep 7, 2010 at 9:57 AM, Kurian Thayil wrote:
> Hi All,
>
> I am a newbie in python. Just 2-3 days old wanting to learn this amazing
> programming
Hi All,
I am a newbie in python. Just 2-3 days old wanting to learn this amazing
programming language. I was trying to send mails using smtplib module, so
did some google and found a code snippet. The mail gets sent, but doesn't
come in the right format when a for-loop is introduced (Not MIME stan
praba kar <[EMAIL PROTECTED]> wrote:
>Here I want to avoid this line "Received: from unknown
>(HELO prabahar.enmail.com) (59.92.13.47) by
>mailserver with SMTP; 11 May 2005 10:09:11 - " How
>can I do this? . Why python give this line? . Mail
>sending Module in php will not give this type
praba kar <[EMAIL PROTECTED]> wrote:
>Here I want to avoid this line "Received: from unknown
>(HELO prabahar.enmail.com) (59.92.13.47) by
>mailserver with SMTP; 11 May 2005 10:09:11 - " How
>can I do this? . Why python give this line? . Mail
>sending Module in php will not give this type
Dear All,
I have doubt regarding mail sending smtplib
module. The below code is I used to send a mail.
##
import email.Message
import email.Utils
import mimetypes
import os,string
fromAddr="[EMAIL PROTECTED]"
toAddr=
["[EMAIL PROT