__construct()
alt_body()
attach()
bcc()
body()
cc()
clear_addresses()
clear_attachments()
clear_bcc()
clear_cc()
clear_recipients()
clear_reply_to()
clear_to()
from()
get_bcc()
get_body()
get_cc()
get_config()
get_from()
get_invalid_addresses()
get_reply_to()
get_subject()
get_to()
header()
html_body()
pipelining()
priority()
reply_to()
return_path()
send()
set_config()
string_attach()
subject()
to()
_send()
add_to_list()
attachment_mime()
build_message()
clear_list()
encode_mimeheader()
encode_string()
find_attachment()
format_addresses()
generate_alt()
get_attachment_headers()
get_content_type()
get_header()
get_mail_type()
get_message_id()
prep_newlines()
set_boundaries()
set_header()
validate_addresses()
$alt_body
$attachments
$bcc
$body
$boundaries
$cc
$config
$extra_headers
$headers
$invalid_addresses
$pipelining
$reply_to
$subject
$to
$type
__construct(array $config)
array
driver config
alt_body(string $alt_body) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The message alt body
attach(string $file, bool $inline, string $cid, string $mime, string $name) : \Email\Email_Driver
This method will search for the file in the attachment paths set (config/email.php) in the attach_paths array
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The file to attach
bool
Whether to include the file inline
string
The content identifier. Used when attaching inline images
string
The file's mime-type
string
The attachment's name
\InvalidAttachmentsException |
Could not read attachment or attachment is empty |
---|
bcc(string | array $email, string | bool $name) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
array
Email address or list of email addresses, array(email => name, email)
string
bool
Recipient name, false, null or empty for no name
body(string $body) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The message body
cc(string | array $email, string | bool $name) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
array
Email address or list of email addresses, array(email => name, email)
string
bool
Recipient name, false, null or empty for no name
clear_addresses() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
clear_bcc() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
clear_cc() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
clear_recipients() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
clear_reply_to() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
clear_to() : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
from(string $email, bool | string $name) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The from email address
bool
string
The optional from name
get_bcc() : array
array
to bcc recipients listget_body() : string
string
the message bodyget_cc() : array
array
to cc recipients listget_config(string $key, string $default) : mixed
string
Config key
string
Default value
mixed
the config setting valueget_from() : array
array
from address and nameget_invalid_addresses() : array
array
An array of invalid email addressesget_reply_to() : array
array
to 'reply to' recipients listget_subject() : string
string
the message subjectget_to() : array
array
to recipients listheader(string | array $header, string $value) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
array
Header type or array of headers
string
Header value
html_body(string $html, bool $generate_alt, bool $auto_attach) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The body html
bool
Whether to generate the alt body, will set is html to true
bool
Whether to auto attach inline files
pipelining(bool $pipelining) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
bool
Whether or not to enable pipelining
priority(string $priority) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The message priority
reply_to(string | array $email, string | bool $name) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
array
Email address or list of email addresses, array(email => name, email)
string
bool
The name, false, null or empty for no name
return_path(string $email) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The return-path email address
send(bool $validate) : bool
bool
Whether to validate the addresses, falls back to config setting
\EmailValidationFailedException |
One or more email addresses did not pass validation |
---|---|
\FuelException |
Cannot send without from address/Cannot send without recipients |
bool
set_config(string $key, mixed $value) : object
string
the config key
mixed
the new config value
object
$thisstring_attach(string $contents, string $filename, string $cid, bool $inline, string $mime) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
File contents
string
The files name
string
The content identifier. Used when attaching inline images
bool
Whether it's an inline attachment
string
The file's mime-type
subject(string $subject) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
The message subject
to(string | array $email, string | bool $name) : \Email\Email_Driver
fluent | This method is part of a fluent interface and will return the same instance |
---|
string
array
Email address or list of email addresses, array(email => name, email)
string
bool
Recipient name, false, null or empty for no name
_send() : bool
bool
success booleanadd_to_list(string $list, string | array $email, string | bool $name) : void
string
List to add to (to, cc, bcc)
string
array
Email address or list of email addresses, array(email => name, email)
string
bool
Recipient name, false, null or empty for no name
clear_list(string | array $list) : void
string
array
List or array of lists
encode_mimeheader(string $header) : string
string
Header to encode
string
Mimeheader encoded stringencode_string(string $string, string $encoding, string $newline) : string
string
String to encode
string
The charset
string
Newline delimeter
\InvalidEmailStringEncoding |
Encoding is not a supported by encoding method |
---|
string
Encoded stringformat_addresses(array $addresses) : string
array
Array of adresses array(array(name=>name, email=>email));
string
Correctly formatted email addressesgenerate_alt(string $html, int $wordwrap, string $newline) : string
string
html Body to al body generate from
int
Wordwrap length
string
Line separator to use
string
The generated alt bodyget_content_type(string $mail_type, $boundary) : string
string
Type of email (plain, html, html_inline, etc…)
\FuelException |
Invalid content-type |
---|
string
Mail content typeget_header(string $header, bool $formatted) : string | array
string
The header name. Will return all headers, if not specified
bool
Adds newline as suffix and colon as prefix, if true
string
array
Mail header or array of headersget_mail_type() : string
string
Mail typeprep_newlines(string $string, string $newline) : string
string
String to prep
string
The newline delimiter
string
String with standardized newlinesset_boundaries()
set_header(string $header, string $value)
string
The header type
string
The header value
validate_addresses() : bool | array
bool
array
True if all are valid or an array of recipients which failed validation.$alt_body
$bcc
$body
$boundaries
$cc
$config
$extra_headers
$headers
$invalid_addresses
$pipelining
$reply_to
$subject
$to
$type