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
$doctrine
private
mixed
$doctrine
$format
private
mixed
$format
$mailer
private
mixed
$mailer
$request
private
mixed
$request
$sanitize
private
mixed
$sanitize
$settings
private
mixed
$settings
$translator
private
mixed
$translator
$validator
private
mixed
$validator
Methods
__construct()
public
__construct(EntityManagerInterface $doctrine, TranslatorInterface $translator, Settings $settings, Request $request, Sanitize $sanitize, Format $format, Validator $validator) : mixed
Parameters
- $doctrine : EntityManagerInterface
- $translator : TranslatorInterface
- $settings : Settings
- $request : Request
- $sanitize : Sanitize
- $format : Format
- $validator : Validator
Return values
mixed —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