import smtplib
import string
host = “localhost”
fromclause = “
xxx@mail.ru”
toclause = “
xxx0@mail.ru”
ccclause =“
yyy@mail.ru,
zzz@list.ru”
ccclause = string.splitfields(ccclause, “,”)
cclist = ccclause
#Ccs = (ccclause and string.split(ccclause, ‘,’)) or
toclause = string.splitfields(toclause, “;”)
toclause = map(string.strip, toclause)
msgbody = “”“
This email brings BCC news for you!!
Best Regards!!!
”“”
SMTPServer = smtplib.SMTP(“192.168.0.10”,“8025”)
SMTPServer.sendmail(fromclause, toclause + ccclause, msgbody)
SMTPServer.quit()