Search code examples
erlangmnesiayawsnitrogen

Working with Emails (POP3, IMAP, SMTP e.t.c) in Erlang?


How can one handle email related communications pragmatically in Erlang/OTP? Using bash, python or Perl scripts, its possible for one to send out emails. However, in Erlang, i have not yet found an Application or built in function dedicated to sending and/or receiving emails on behalf of other applications.
In yaws, there is a mail application located in the applications path of the web server.However, on the yaws home page, there is no documentation dedicated to this application. In Nitrogen Web framework, i have found nothing yet useful as far as email protocols are concerned.
If any one knows of a library which i can use for sending and/or receiving mails pragmatically, could please direct me. Also there could be unofficial implementations as well that i do not know of. thanks, in advance


Solution

  • I've been successfully using smtp_fsm.erl for sending emails (not exactly this version, but this one is publicly accessible).

    Quick search showed some other smtp- and email-related packages, but I don't have experience with any of these.