messenger
class messenger
Messenger
Properties
$msg | |||
$replyto | |||
$from | |||
$subject | |||
$addresses | |||
$extra_headers | |||
$mail_priority | |||
$use_queue | |||
protected template | $template |
Methods
Constructor
Resets all the data (address, template file, etc etc) to default
Set addresses for to/im as available
Sets an email address to send to
Sets an cc address to send to
Sets an bcc address to send to
Sets a im contact to send to
Set the reply to address
Set the from address
set up subject for mail
set up extra mail headers
Set the email priority
Set email template to use
assign variables to email template
No description
Send the mail out to the recipients set previously in var $this->addresses
Add error message to log
Save to queue
Generates a valid message id to be used in emails
Return email header
Send out emails
Send jabber message out
Setup template engine
Set template paths to load
Details
at line 40
__construct($use_queue = true)
Constructor
at line 51
reset()
Resets all the data (address, template file, etc etc) to default
at line 63
set_addresses(array $user)
Set addresses for to/im as available
at line 79
to($address, $realname = '')
Sets an email address to send to
at line 106
cc($address, $realname = '')
Sets an cc address to send to
at line 121
bcc($address, $realname = '')
Sets an bcc address to send to
at line 136
im($address, $realname = '')
Sets a im contact to send to
at line 152
replyto($address)
Set the reply to address
at line 160
from($address)
Set the from address
at line 168
subject($subject = '')
set up subject for mail
at line 176
headers($headers)
set up extra mail headers
at line 199
set_mail_priority($priority = MAIL_NORMAL_PRIORITY)
Set the email priority
at line 207
template($template_file, $template_lang = '', $template_path = '', $template_dir_prefix = '')
Set email template to use
at line 293
assign_vars($vars)
assign variables to email template
at line 300
assign_block_vars($blockname, $vars)
No description
at line 316
bool
send(int $method = NOTIFY_EMAIL, bool $break = false)
Send the mail out to the recipients set previously in var $this->addresses
at line 420
error($type, $msg)
Add error message to log
at line 450
save_queue()
Save to queue
at line 466
string
generate_message_id()
Generates a valid message id to be used in emails
at line 478
build_header($to, $cc, $bcc)
Return email header
at line 533
msg_email()
Send out emails
at line 663
msg_jabber()
Send jabber message out
at line 735
protected
setup_template()
Setup template engine
at line 772
protected
set_template_paths($path_name, $paths)
Set template paths to load