[erlang-questions] Erlang SMTP Client?

David Mercer <>
Tue Oct 11 19:21:03 CEST 2011


On Monday, October 10, 2011, Richard Carlsson wrote:

> On 10/10/2011 11:30 PM, David Mercer wrote:
> > I must admit, I am
> surprised
> > there is no SMTP client in the standard distribution.  You would
> think that
> > would be a fairly common communication protocol...
> 
> Often, what you want is more than just SMTP. If there are some network
> issues (or your mail server is simply down) at the time your program
> tries to send the mail, you usually want your program to still be able
> to regard the mail as sent and carry on. This means that the mail needs
> to be persistently stored on disk in a spool area and that the MTA
> regularly tries to send any outgoing mail that's been spooled, so it
> will eventually be on its way once the problem is resolved. That's why
> we like to rely on sendmail instead. But it all depends on the needs of
> your application.

Having an SMTP module would enable you to write in Erlang what you need for
storing messages for later delivery, if that happened to be your
requirement.

What do people think of an EEP to add SMTP support?  I'm thinking I might be
the only person who needs it, since Erlang is, like, 100 years old and it's
not in there yet.  Is there a silent majority secretly hoping for SMTP in
the next release of Erlang, or am I standing alone on this hill?

Cheers,

DBM




More information about the erlang-questions mailing list