Legend of the Green Dragon

SystemMail
in package

Table of Contents

$doctrine  : mixed
$format  : mixed
$mailer  : mixed
$request  : mixed
$sanitize  : mixed
$settings  : mixed
$translator  : mixed
$validator  : mixed
__construct()  : mixed
send()  : void
Send a system mail (internal mail) to user.
setMailer()  : self
Set mailer.

Properties

Methods

send()

Send a system mail (internal mail) to user.

public send(int $to, string|array<string|int, mixed> $subject, string|array<string|int, mixed> $body, int $from[, bool $noEmail = false ]) : void
Parameters
$to : int

ID of the user receiving the mail

$subject : string|array<string|int, mixed>

Subject of mail (can be array for translation purpose)

$body : string|array<string|int, mixed>

Message of mail (can be array for translation purpose)

$from : int

ID of user that send the

$noEmail : bool = false

Not send email when receiving mail

Return values
void

setMailer()

Set mailer.

public setMailer(MailerInterface $mailer) : self
Parameters
$mailer : MailerInterface
Return values
self

Search results