Re: Sending mail from 'current user' in Python
- From: Leo Breebaart <leo@xxxxxxxxxx>
- Date: 14 Jun 2005 09:04:01 GMT
Marcus Alanen <marcus.alanen@xxxxxx> writes:
> >>I've also tried opening a pipe to sendmail, and feeding the
> >>message to that instead. This too works great [but] doesn't
> >>seem like much of an improvement, portability-wise.
>
> No, but at least it can be expected to do the right thing
> w.r.t. sending the mail.
Good point.
> >>Finally, if at all possible I'd also like to get this working on
> >>Windows, so I'd rather stick with the standard smtplib if I can.
> > smtplib needs an SMTP server to connect to. For unix systems, this is
> > typically localhost. What do you use for Windows systems? Or are you
> > connecting to your machine to deliver the mail?
>
> I'd be very surprised if the typical SMTP server is localhost
> on unix-like computers. [...] Let the sendmail program take
> care of those details.
>
> The Unix Programming Frequently Asked Questions "Q5.2 What's the best
> way to send mail from a program?" is worth reading.
Thanks to you and everyone else who contributed to this thread.
I've now decided to accept the inherent non-portabilitiness of
the whole concept of 'sending mail from within a program', and
will be going with a Unix-only see-if-you-can-find-sendmail
approach.
--
Leo Breebaart <leo@xxxxxxxxxx>
.
- References:
- Sending mail from 'current user' in Python
- From: Leo Breebaart
- Re: Sending mail from 'current user' in Python
- From: Mike Meyer
- Re: Sending mail from 'current user' in Python
- From: Marcus Alanen
- Sending mail from 'current user' in Python
- Prev by Date: Re: gobal var inside class without notice???
- Next by Date: Re: circular import Module
- Previous by thread: Re: Sending mail from 'current user' in Python
- Next by thread: Re: Sending mail from 'current user' in Python
- Index(es):
Relevant Pages
|