\jb\commonMail

Class Mail

Summary

Methods
Properties
Constants
is_sending()
prepare_template()
send()
get_job_details()
replace_placeholders()
multi_admin_email()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$sending
N/A

Properties

$sending

$sending : bool

Type

normal

Methods

is_sending()

is_sending() : bool

Returns

bool

prepare_template()

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

Prepare email template to send

Parameters

string $slug
array $args

Returns

string

send()

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

Send Email function

Parameters

string $email
null $template
array $args
array $attachments

Returns

mixed

get_job_details()

get_job_details(\WP_Post  $job) : string

Get job details for placeholder

Parameters

\WP_Post $job

Returns

string

replace_placeholders()

replace_placeholders(string  $content, array  $args) : string

Replace placeholders

Parameters

string $content
array $args

Returns

string

multi_admin_email()

multi_admin_email() : array

Get admin emails

Returns

array