\TriTanMailHandler

Monolog Handler Email Class

Summary

Methods
Properties
Constants
__construct()
$app
No constants found
send()
buildMessage()
$mailer
$email_to
$subject
N/A
No private methods found
$messageTemplate
N/A

Properties

$app

$app : 

Type

$mailer

$mailer : 

Type

$email_to

$email_to : 

Type

$subject

$subject : 

Type

$messageTemplate

$messageTemplate : 

Type

Methods

__construct()

__construct(\TriTan\Common\Mailer  $mailer,   $message,   $email_to,   $subject,   $level = \Monolog\Logger::ALERT,   $bubble = true, \Liten\Liten  $liten = null) 

Parameters

\TriTan\Common\Mailer $mailer
$message
$email_to
$subject
$level
$bubble
\Liten\Liten $liten

send()

send(  $content, array  $records) 

Parameters

$content
array $records

buildMessage()

buildMessage(string  $content, array  $records) : \TriTan\Email

Creates instance of Email to be sent

Parameters

string $content

formatted email body to be sent

array $records

Log records that formed the content

Returns

\TriTan\Email