do cc list from smtplib

eight02645999 at yahoo.com eight02645999 at yahoo.com
Fri Oct 21 11:34:40 CEST 2005


hi
i have email code:

def email(HOST,FROM,TO,SUBJECT,BODY):
    import smtplib
    import string, sys


    body = string.join((
    "From: %s" % FROM,
    "To: %s" % TO,
    "Subject: %s" % SUBJECT,
    "",
    BODY), "\r\n")

    print body

    server = smtplib.SMTP(HOST)
    server.sendmail(FROM, [TO],body)
    server.quit()


is there a way to include CC list for the smtplib module?
thanks




More information about the Python-list mailing list