class FallbackMailer implements IMailer

Traits

Strict class for better experience.

Properties

callable[] $onFailure

Methods

__construct(array $mailers, int $retryCount = 3, int $retryWaitTime = 1000)

No description

void
send(Message $mail)

Sends email.

addMailer(IMailer $mailer)

No description

Details

at line 36
__construct(array $mailers, int $retryCount = 3, int $retryWaitTime = 1000)

Parameters

array $mailers
int $retryCount
int $retryWaitTime

at line 48
void send(Message $mail)

Sends email.

Parameters

Message $mail

Return Value

void

Exceptions

FallbackMailerException

at line 80
FallbackMailer addMailer(IMailer $mailer)

Parameters

IMailer $mailer

Return Value

FallbackMailer