Documentation

MessageFactory
in package

Helps create Swift_Message objects, lazily

Tags
author

Ryan Weaver ryan@knpuniversity.com

Table of Contents

$contentType  : mixed
$fromEmail  : mixed
$mailer  : mixed
$subject  : mixed
$toEmail  : mixed
__construct()  : mixed
createMessage()  : Swift_Message
Creates a Swift_Message template that will be used to send the log message

Properties

Methods

__construct()

public __construct(Swift_Mailer $mailer, mixed $fromEmail, mixed $toEmail, mixed $subject[, mixed $contentType = null ]) : mixed
Parameters
$mailer : Swift_Mailer
$fromEmail : mixed
$toEmail : mixed
$subject : mixed
$contentType : mixed = null
Return values
mixed

createMessage()

Creates a Swift_Message template that will be used to send the log message

public createMessage(string $content, array<string|int, mixed> $records) : Swift_Message
Parameters
$content : string

formatted email body to be sent

$records : array<string|int, mixed>

Log records that formed the content

Return values
Swift_Message

Search results