smtplib question

Garry Hodgson garry at sage.att.com
Wed Sep 17 22:47:06 CEST 2003


how do i use smtplib to send mail to someone with "cc" to someone else?
if i just include the "to" addressees in the call to smtplib.sendmail(), and
put the others in the "Cc" header fields, only the "To" recipients get the mail,
thought the mail headers look right.

but if i also add the "Cc" folks to the list of recipients in the call to smtplib.sendmail(),
it arrives at their mailer with their address listed on both the "To" and "Cc" 
header fields.

what i want is for everyone on the "To" or "Cc" list to get the mail, and for
the mail headers to reflect this.

please respond off-list.  i had to give up following comp.lang.python for lack
of time.

thanks

----
Garry Hodgson, Technology Consultant, AT&T Labs

Be happy for this moment.
This moment is your life.





More information about the Python-list mailing list