Properties

$email_templates

$email_templates : array

Type

array

$path_by_slug

$path_by_slug : array

Type

array

Methods

__construct()

__construct() 

Mail constructor.

init_paths()

init_paths() 

Init paths for email notifications

mandrill_nl2br()

mandrill_nl2br(  $nl2br, string  $message = '') : boolean

Mandrill compatibility

Parameters

$nl2br
string $message

Returns

boolean

send()

send(string  $email, null  $template, array  $args = array()) 

Send Email function

Parameters

string $email
null $template
array $args

get_email_template()

get_email_template(  $slug,   $args = array()) : boolean|string

Parameters

$slug
$args

Returns

boolean|string

prepare_template()

prepare_template(  $slug,   $args = array()) : mixed|string

Prepare email template to send

Parameters

$slug
$args

Returns

mixed|string

locate_template()

locate_template(string  $template_name) : string

Locate a template and return the path for inclusion.

Parameters

string $template_name

Returns

string

get_template_filename()

get_template_filename(  $template_name) : mixed|void

Parameters

$template_name

Returns

mixed|void

template_in_theme()

template_in_theme(string  $template_name, boolean  $html = false) : string

Locate a template and return the path for inclusion.

Parameters

string $template_name
boolean $html

Returns

string

get_template_file()

get_template_file(string  $location, string  $template_name, boolean  $html = false) : string

Method returns expected path for template

Parameters

string $location
string $template_name
boolean $html

Returns

string

set_content_type()

set_content_type(  $content_type) : string

Set email content type

Parameters

$content_type

Returns

string

copy_email_template()

copy_email_template(boolean  $template = false) : boolean

Ajax copy template to the theme

Parameters

boolean $template

Returns

boolean

delete_email_template()

delete_email_template() 

Delete Email Notification Template