$renderer
$renderer : \Zend\View\Renderer\PhpRenderer
The PhpRender used to render view script
Class MailMessage send html mail messages based on view script
setInlineImages(array $inlineImages) : $this
Set inline attachments (of view script) to send with message the key of each array must correspond to parameter passed to the view script each item in array must contain array with keys type and filepath that corresponds to parameters of Zend\Mime\Part parameters of same name
array | $inlineImages | array in format given above |
if
AclUser\Mail\MailMessage
setLayoutImages(array $layoutImages) : $this
Specify inline images to be added to layout script the key of each array must correspond to the parameter passed to e-mail layout each item in array must contain array with keys: type and filepath that corresponds to Zend\Mime\Part parameters of same name.
Exception will be thrown if array's requirements are not met
array | $layoutImages | array in format given above |
AclUser\Mail\MailMessage
setAttachments(array $attachments) : $this
Set (non inline) attachments to send with message each item in array must contain array with keys type and filepath that corresponds to parameters of Zend\Mime\Part parameters of same name TYPES: PDF - application/pdf ZIP - application/octet-stream PNG - image/png JPG - image/jpg
array | $attachments | array of attachments |
AclUser\Mail\MailMessage
embedImageFromSrc(boolean $embedImageFromSrc = true) : $this
Tell system whether to embed images based on IMG tag SRC attribute note that the IMG tag must have a class of ember-image as well
boolean | $embedImageFromSrc | whether to search image src and embed images where possible |
AclUser\Mail\MailMessage
getImagesToEmbedFromSrc(string $rendered, \Zend\Mime\Message $mimeMessage) : string
Search through IMG tags and embed them if embedImageFromSrc evaluates to true and the IMG tag has the embed-image class
string | $rendered | |
\Zend\Mime\Message | $mimeMessage |
completeEmbedImagesFromSrc(array $chosenImagesNodes, \AclUser\Mail\Zend\Dom\NodeList $imageNodeList, \Zend\Mime\Message $mimeMessage) : string
Actually embed inline images based on their source
array | $chosenImagesNodes | image nodes in document that need to have their src attribute substituted |
\AclUser\Mail\Zend\Dom\NodeList | $imageNodeList | (all) image nodes in document |
\Zend\Mime\Message | $mimeMessage |
the html e-mail string
tryToGetImageFromSrc(string $src) : boolean|\AclUser\Mail\image
Try to get image from file system based on IMG SRC attribute Temporarily turn off warning reporting so that nothing appears in browser when the image is not found.
string | $src |
file contents
createMimePart(string $content, string $filename, string $type, string $disposition) : \Zend\Mime\Part
Create individual mime part to be attached o the message
string | $content | the data of the file |
string | $filename | the name of the file |
string | $type | the mime type of the file |
string | $disposition | disposition for (part) of header Content-Disposition |