Copyright © 2010-2011 Maximonster Interactive Things
Behaviours: gen_server.
Authors: Marc Worrell (marc@worrell.nl), Atilla Erdodi (atilla@maximonster.com).
| bounced/2 | Handle a bounce. |
| code_change/3 | Convert process state when code is changed. |
| generate_message_id/0 | Generate a new message id. |
| handle_call/3 | Trap unknown calls. |
| handle_cast/2 | Send an e-mail. |
| handle_info/2 | Poll the database queue for any retrys. |
| init/1 | Initiates the server. |
| is_bounce_email/1 | Check if the received e-mail address is a bounce address. |
| send/2 | Send an email. |
| send/3 | Send an email using a predefined unique id. |
| start_link/0 | Starts the server. |
| terminate/2 | This function is called by a gen_server when it is about to terminate. |
bounced(Peer, NoReplyEmail) -> any()
Handle a bounce
code_change(OldVsn, State, Extra) -> {ok, NewState}
Convert process state when code is changed
generate_message_id() -> any()
Generate a new message id
handle_call(Message::Request, From, State) -> {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}
Trap unknown calls
handle_cast(Message::Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
Send an e-mail.
handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}
Poll the database queue for any retrys.
init(Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}
Initiates the server.
is_bounce_email(X1) -> any()
Check if the received e-mail address is a bounce address
send(Email, Context) -> any()
Send an email
send(Id, Email, Context) -> any()
Send an email using a predefined unique id.
start_link() -> {ok, Pid} | ignore | {error, Error}
Starts the server
terminate(Reason, State) -> void()
This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.
Generated by EDoc, Dec 10 2012, 20:44:33.