reg mail sending without smtp module
Roel Schroeven
rschroev_nospam_ml at fastmail.fm
Thu May 12 03:39:41 EDT 2005
praba kar wrote:
> --- Tim Williams <listserver at tdw.net> wrote:
>>Why don't you want to use smtplib ?
>
> In Php we can build a Mail Message by
> Mail_mime class and send this message by
> Mail::Factory's class send Method. Here Php
> doesn't use any smtp modules. Like that
> In Python I used email.Message class to
> build Mail Message and Now I am searching
> modules to send this message as mail.
You can still use smtplib:
msg = email.Message()
...
smtp = smtplib.SMTP(...)
smtp.sendmail(from, to, msg.as_string())
--
If I have been able to see further, it was only because I stood
on the shoulders of giants. -- Isaac Newton
Roel Schroeven
More information about the Python-list
mailing list