PHP Class Redaxscript\Mailer

Since: 2.0.0
Author: Henry Ruhs
Show file Open project: redaxmedia/redaxscript Class Usage Examples

Protected Properties

Property Type Description
$_attachmentArray array array of attachments
$_body mixed body of the email
$_bodyString string built body contents
$_fromArray array array of sender
$_fromString string built recipient contents
$_headerString string built header contents
$_subject string subject of the email
$_subjectString string built subject contents
$_toArray array array of recipient

Public Methods

Method Description
init ( array $toArray = [], array $fromArray = [], string $subject = null, mixed $body = null, array $attachmentArray = [] ) init the class
send ( ) : boolean send the email

Protected Methods

Method Description
_createBodyString ( ) create the body contents
_createFromString ( ) create the recipient contents
_createHeaderString ( ) create the header contents
_createSubjectString ( ) create the subject contents

Method Details

_createBodyString() protected method

create the body contents
Since: 2.0.0
protected _createBodyString ( )

_createFromString() protected method

create the recipient contents
Since: 2.0.0
protected _createFromString ( )

_createHeaderString() protected method

create the header contents
Since: 2.0.0
protected _createHeaderString ( )

_createSubjectString() protected method

create the subject contents
Since: 2.0.0
protected _createSubjectString ( )

init() public method

init the class
Since: 2.4.0
public init ( array $toArray = [], array $fromArray = [], string $subject = null, mixed $body = null, array $attachmentArray = [] )
$toArray array array of recipient
$fromArray array array of sender
$subject string subject of the email
$body mixed body of the email
$attachmentArray array array of attachments

send() public method

send the email
Since: 2.6.2
public send ( ) : boolean
return boolean

Property Details

$_attachmentArray protected property

array of attachments
protected array $_attachmentArray
return array

$_body protected property

body of the email
protected mixed $_body
return mixed

$_bodyString protected property

built body contents
protected string $_bodyString
return string

$_fromArray protected property

array of sender
protected array $_fromArray
return array

$_fromString protected property

built recipient contents
protected string $_fromString
return string

$_headerString protected property

built header contents
protected string $_headerString
return string

$_subject protected property

subject of the email
protected string $_subject
return string

$_subjectString protected property

built subject contents
protected string $_subjectString
return string

$_toArray protected property

array of recipient
protected array $_toArray
return array