\org_openpsa_mail_message

Wrapper class for emails

Summary

Methods
Properties
Constants
__construct()
get_recipients()
get_message()
set_header_field()
get_headers()
get_body()
set_body()
set_html_body()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_embed_images()
_process_attachments()
_encode_address_field()
$_to
$_encoding
$_headers
$_body
$_html_body
$_message
N/A

Properties

$_to

$_to : 

Type

$_encoding

$_encoding : 

Type

$_headers

$_headers : 

Type

$_body

$_body : 

Type

$_html_body

$_html_body : 

Type

$_message

$_message : \Swift_Message

Type

\Swift_Message

Methods

__construct()

__construct(  $to, array  $headers,   $encoding) 

Parameters

$to
array $headers
$encoding

get_recipients()

get_recipients() 

get_message()

get_message() 

set_header_field()

set_header_field(  $name,   $value) 

Parameters

$name
$value

get_headers()

get_headers() 

get_body()

get_body() 

set_body()

set_body(  $body) 

Parameters

$body

set_html_body()

set_html_body(string  $body, string  $altBody, array  $attachments, boolean  $do_image_embedding) 

Parameters

string $body

the html body

string $altBody

the alternative (text) body

array $attachments
boolean $do_image_embedding

_embed_images()

_embed_images() 

_process_attachments()

_process_attachments(  $attachments) 

Parameters

$attachments

_encode_address_field()

_encode_address_field(string  $value) : mixed

Helper function that provides backwards compatibility to addresses specified in a "Name <email@addre.ss>" format

Parameters

string $value

The value to encode

Returns

mixed —

the encoded value