sendmail: under Windows NT/2000

Lyle Johnson ljohnson at resgen.com
Wed Dec 6 18:11:26 EST 2000


You are correct that invoking "sendmail" pretty much ties you down to Unix
platforms. Take a look at the platform-independent "smptlib" module (part of
the standard Python library) to see if that could be used instead.

"Shicheng" <S.Tian at shu.ac.uk> wrote in message
news:90mapg$u7m$1 at nnrp1.deja.com...
> Hello all,
> I test a python cgi sendmail program; in the code
> there are the following lines:
>
> ...
> sendmail_cmd = "/usr/lib/sendmail -oi "
> ...
> try: mfd = os.popen(sendmail_cmd + real_to, "w")
> ...
>
> I think the string "/usr/lib/sendmail -oi " suggests
> that the code should be used under the UNIX platform.
>
> My query is: under Windows NT/2000, how could I change the
> above line of code so that I could make use of the NT/2000
> mailing facility in the code?
>
> Thanks,
>
> Shicheng
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.





More information about the Python-list mailing list