Module ce_smtp

Simple SMTP client and server written in Erlang.

Description

Simple SMTP client and server written in Erlang.

The SMTP client is very simple, but is capable of sending e-mail via a standard SMTP server. If something unexpected happens, the entire e-mail transaction is aborted.

The SMTP server is likewise trivial, and does not constitute a full-fledged mail server. A specified callback function is called for each piece of incoming mail received.

This module was previously called smtpe.

Function Index

client/9Called by send_email/1.
send_email/1Sends an e-mail message to an SMTP server.
server/1Starts a simple SMTP server.
server/4Called by server/1.

Function Details

client/9

client(Socket::socket(), Parent::pid(), Originator::string(), Sender::string(), Recipients::[string()], Message::string(), MessageID::string(), Headers::[string()], Subject::string()) -> exit

Called by send_email/1. Should not be called directly by user code.

send_email/1

send_email(Options::[option()]) -> ok | {error, Reason}

Sends an e-mail message to an SMTP server. Options include:

server/1

server(Options::[option()]) -> {ok, Pid} | {error, Reason}

Starts a simple SMTP server. Options include:

server/4

server(Socket::socket(), Host::string(), Module::atom(), Function::atom()) -> never_returns

Called by server/1. Should not be called directly by user code.


Generated by EDoc, Dec 25 2007, 02:37:47.