class Mailer

Class Email

Properties

protected LoggerInterface $logger
protected View $view
protected SettingsInterface $config
protected StringFormatter $stringFormatter

Methods

__construct(LoggerInterface $logger, View $view, SettingsInterface $config, StringFormatter $stringFormatter)

Mailer constructor.

$this
setFrom(string|array $from) deprecated

No description

$this
setMailSignature(string $mailSignature) deprecated

No description

$this
setHtmlBody(string $htmlText) deprecated

No description

$this
setUrlWeb(string $urlWeb) deprecated

No description

$this
setBcc(bool $bcc) deprecated

No description

$this
setSubject(string $subject) deprecated

No description

$this
setBody(string $body) deprecated

No description

$this
setRecipients(array|string $recipients) deprecated

No description

$this
setAttachments(string|array $attachments) deprecated

No description

$this
setTemplate(string $template) deprecated

No description

$this
setData(MailerMessage $data)

No description

bool
send()

Sends the email

string
generateSubject()

No description

$this
reset()

Resets the currently set mailer values back to there default values

Details

at line 92
__construct(LoggerInterface $logger, View $view, SettingsInterface $config, StringFormatter $stringFormatter)

Mailer constructor.

Parameters

LoggerInterface $logger
View $view
SettingsInterface $config
StringFormatter $stringFormatter

at line 110
$this setFrom(string|array $from) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string|array $from

Return Value

$this

at line 123
$this setMailSignature(string $mailSignature) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $mailSignature

Return Value

$this

at line 136
$this setHtmlBody(string $htmlText) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $htmlText

Return Value

$this

at line 149
$this setUrlWeb(string $urlWeb) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $urlWeb

Return Value

$this

at line 162
$this setBcc(bool $bcc) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

bool $bcc

Return Value

$this

at line 175
$this setSubject(string $subject) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $subject

Return Value

$this

at line 188
$this setBody(string $body) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $body

Return Value

$this

at line 201
$this setRecipients(array|string $recipients) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

array|string $recipients

Return Value

$this

at line 214
$this setAttachments(string|array $attachments) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string|array $attachments

Return Value

$this

at line 231
$this setTemplate(string $template) deprecated

deprecated since version 4.8.0, to be removed with version 5.0.0

Parameters

string $template

Return Value

$this

at line 242
$this setData(MailerMessage $data)

Parameters

MailerMessage $data

Return Value

$this

at line 265
bool send()

Sends the email

Return Value

bool

at line 301
protected string generateSubject()

Return Value

string

at line 515
$this reset()

Resets the currently set mailer values back to there default values

Return Value

$this