Module z_email_server

Email server.

Copyright © 2010 Maximonster Interactive Things Date: 2010-11-25

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl), Atilla Erdodi (atilla@maximonster.com).

Description

Email server. Queues, renders and sends e-mails.

Function Index

code_change/3Convert process state when code is changed.
handle_call/3Send an e-mail to an e-mail address.
handle_cast/2
handle_info/2Poll the database queue for any retrys.
init/1Initiates the server.
start_link/0Starts the server.
terminate/2This function is called by a gen_server when it is about to terminate.

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> {ok, NewState}

Convert process state when code is changed

handle_call/3

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}

Send an e-mail to an e-mail address.

handle_cast/2

handle_cast(Message::Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

handle_info/2

handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Poll the database queue for any retrys.

init/1

init(Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}

Initiates the server.

start_link/0

start_link() -> {ok, Pid} | ignore | {error, Error}

Starts the server

terminate/2

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, Feb 25 2011, 21:14:41.