Module z_email

Send e-mail to a recipient.

Copyright © 2009 Marc Worrell Date: 2009-11-02

Authors: Marc Worrell (marc@worrell.nl).

Description

Send e-mail to a recipient. Optionally queue low priority messages.

Function Index

bounced/1Inform the mail sender gen_server about a bounced message.
combine_name_email/2Combine a name and an email address to the format jan janssen <jan@example.com>
get_admin_email/1Fetch the e-mail address of the site administrator.
send/2Send an email message defined by the email record.
send/4Send a simple text message to an email address.
send_admin/3Send a simple text message to the administrator.
send_render/4Send a html message to an email address, render the message using a template.
send_render/5Send a html and text message to an email address, render the message using two templates.
sendq/4Queue a simple text message to an email address.
sendq_render/4Queue a html message to an email address, render the message using a template.
sendq_render/5Queue a html and text message to an email address, render the message using two templates.
split_name_email/1Split the name and email from the format jan janssen <jan@example.com>

Function Details

bounced/1

bounced(MsgId) -> any()

Inform the mail sender gen_server about a bounced message.

combine_name_email/2

combine_name_email(Name, Email) -> any()

Combine a name and an email address to the format jan janssen <jan@example.com>

get_admin_email/1

get_admin_email(Context) -> any()

Fetch the e-mail address of the site administrator

send/2

send(Email, Context) -> any()

Send an email message defined by the email record.

send/4

send(To, Subject, Message, Context) -> any()

Send a simple text message to an email address

send_admin/3

send_admin(Subject, Message, Context) -> any()

Send a simple text message to the administrator

send_render/4

send_render(To, HtmlTemplate, Vars, Context) -> any()

Send a html message to an email address, render the message using a template.

send_render/5

send_render(To, HtmlTemplate, TextTemplate, Vars, Context) -> any()

Send a html and text message to an email address, render the message using two templates.

sendq/4

sendq(To, Subject, Message, Context) -> any()

Queue a simple text message to an email address

sendq_render/4

sendq_render(To, HtmlTemplate, Vars, Context) -> any()

Queue a html message to an email address, render the message using a template.

sendq_render/5

sendq_render(To, HtmlTemplate, TextTemplate, Vars, Context) -> any()

Queue a html and text message to an email address, render the message using two templates.

split_name_email/1

split_name_email(Email) -> any()

Split the name and email from the format jan janssen <jan@example.com>


Generated by EDoc, Feb 25 2011, 21:14:41.