On Wed, Oct 03, 2007 at 02:09:07PM -0700, Steve Willoughby wrote: > On Wed, Oct 03, 2007 at 05:02:52PM -0400, Kent Johnson wrote: > > One gotcha is that msg must also include From and Two headers. A > > slightly longer example is here: > > http://docs.python.org/lib/SMTP-example.html > > Yes, that's important to remember. Actually, you want to > put all the headers you care about in msg (probably Subject > at least, along with To, From, and possibly Cc). You can also, > by the way, exploit the separation of naming recipient(s) in the > sendmail() method and listing them in the To: header in the message > text in order to do blind-Cc (Bcc). Just name some people in > the sendmail() parameter but not in the To: or Cc: headers, and > they are blind-carbon-copied.
...and don't forget the blank line between headers and message text. -- Steve Willoughby | Using billion-dollar satellites [EMAIL PROTECTED] | to hunt for Tupperware. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor