smtplib

Roy Smith roy at panix.com
Mon Apr 16 08:37:15 EDT 2001


"Steve Holden" <sholden at holdenweb.com> wrote:
> For the record, smtpli.SMTP.sendmail() does *not* look at the message
> envelope at all: so, for example, you implement blind Cc's by including
> recipients in the to_addrs list when they don't appear in the message
> headers inside To: or Cc:.

I think you've got that backwards.  The To: and Cc: lines are part of the 
headers, not the envelope.  The address list you give in the function call 
*is* the envelope.

You are correct that putting addresses in the functional argument list and 
not the headers is how you implement Bcc, you've just got the terminology 
mixed up.



More information about the Python-list mailing list