Class Email
Copyright: Copyright (c) 2010, Phillips Data, Inc.
License: The Blesta License Agreement
Located at components/email/email.php
Methods summary
public
|
#
__construct( string $charset = "UTF-8", integer $max_line_length = 1000 )
Constructs a new Email components, sets the default charset. |
public
|
#
setTransport(
Sets the transport object to be used for all subsequent requests |
public
|
#
setFloodResistance( integer $max_messages, integer $pause_time = 0 )
Set the flood resistenance for sending messages |
private
|
|
public
|
|
public
|
|
public
|
#
setSubject( string $subject, array $replacements = array() )
Sets the subject of the message, replacing the given tags with their key/value pairs. |
public
|
#
setBody( string $body, boolean $is_html = false, array $replacements = array() )
Sets the body of the message, replacing the given tags with their key/value pairs. |
public
|
#
setAltBody( string $body, array $replacements = array() )
Sets the alternate body of the message, replacing the given tags with their key/value pairs. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
|
#
resetAll( )
Resets all recipients, replytos, attachments, and custom headers, body and subject, and replacement tags (if any). |
private
string
|
#
replaceTags( string $str, array $replacements )
Replaces tags in the given $str with the supplied key/value replacements, if a tag exists in Email::$tags, but is not found in $replacements, it will be replaced with null. |
Magic methods summary
Properties summary
public
string
|
$tag_start |
#
The left tag enclosure |
public
string
|
$tag_end |
#
The right tag enclosure |
public
|
$Logs |
#
The logs Model, used to record outgoing messages |
private
array
|
$tags |
#
All tags set for replacement |
private
|
$message |
#
The message object for this instance |
private
|
$mailer |
#
The mailer used to send the message |
private
array
|
$options |
#
An array of options to log when this message is attempted to be sent |
private
string
|
$charset |
#
The default character set encoding. |
private
integer
|
$max_line_length |
#
int $max_line_length The maximum line length (historically 78 chars, no more than 1000 per RFC 2822) |