Thanks a lot Mike you have been very helpful. I gave that a try in a few different ways but, with the same results. I'm going to try your first example.
Best Regards, On 5/23/07, Mike Hansen <[EMAIL PROTECTED]> wrote:
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Daniel McQuay > Sent: Wednesday, May 23, 2007 3:52 PM > Cc: tutor@python.org > Subject: Re: [Tutor] smtplib howto send with a subject line > > Thanks Mike, it seems that I'll be easy to incorporate that > into my script as well. > > I'll give it a try. I'm still open to other suggestions, though. > Take a look at this link again(I think you said you looked at it.) http://effbot.org/librarybook/smtplib.htm Notice that the body string has From:, To:, Subject: followed by the from, to, and subject. body = string.join(( "From: %s" % FROM, "To: %s" % TO, "Subject: %s" % SUBJECT, "", BODY), "\r\n") You might need to do something similar to get your subject line although without the string module since the string methods are built in. I'm no expert on how to construct e-mail messages, so take this with a grain of salt. I'm but a simple caveman programmer(*). Mike * - Phil Hartman "I'm but a simple caveman lawyer" SNL _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
-- Daniel McQuay Jaluno.com H: 814.825.0847 M: 814-341-9013
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor