__construct()
__construct()
Class DocmailService
sendFile( $filename, \Closure $handler) : \Hpolthof\Docmail\DocmailService|null
Send a file through Docmail with a in a closure configured service object.
$filename | ||
\Closure | $handler |
sendData( $filename, $data, \Closure $handler) : \Hpolthof\Docmail\DocmailService|null
Send a file using a data string through Docmail with a in a closure configured service object.
$filename | ||
$data | ||
\Closure | $handler |
getProofFile() : null|string
If the order is processed this function will return the content of the Proof PDF File.
Keep in mind that after sending a mailing the servers need a few seconds to one minute to process the mailing. Be advised to queue a job for the retrieval of the Proof PDF.
getMailing() : \Hpolthof\Docmail\DocmailMailing
addAddress(\Hpolthof\Docmail\DocmailAddress $address) : $this
Add an address using the DocmailAddress.
\Hpolthof\Docmail\DocmailAddress | $address |
addBasicAddress(string $fullname, string $address1, string $address2, string $address3 = '', string $address4 = '') : \Hpolthof\Docmail\DocmailService
Add an address using basic address information.
string | $fullname | |
string | $address1 | |
string | $address2 | |
string | $address3 | |
string | $address4 |
getAddresses() : array<mixed,\Hpolthof\Docmail\DocmailAddress>
getTemplate() : \Hpolthof\Docmail\DocmailTemplateFile
setTemplate(\Hpolthof\Docmail\DocmailTemplateFile $template) : \Hpolthof\Docmail\DocmailService
\Hpolthof\Docmail\DocmailTemplateFile | $template |