I find that the existing email moudle is some hard for me to
understand, especially the part of how to set the CC, BCC and attach
the files. Is there any more easy one like this p-code?

import easyemail
smtpserver=easyemail.server('something')
smtpserver.login('[EMAIL PROTECTED]', pwd)
newletter=smtpsever.letter(smtpserver)
newletter.sendto=['[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
newletter.sendcc=['[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
newletter.sendbcc=['[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
newletter.body='this is the body\nline 2'
newletter.att=['c:/file1.txt', 'd:/program files/app/app.exe']

if (newletter.send()==True):
    print 'send ok'
smtpserver.close()

Thanx.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to