class Interceptor implements Mailer

Wraps a Mailer with optional redirect of outgoing emails and an $onSent event.

Constants

private LeakyHeaders

Properties

$onSent

Methods

__construct(Mailer $mailer, string|null $redirectTo = null, string $subjectPrefix = '')

No description

void
send(Message $mail)

Sends email.

Details

at line 26
__construct(Mailer $mailer, string|null $redirectTo = null, string $subjectPrefix = '')

No description

Parameters

Mailer $mailer
string|null $redirectTo
string $subjectPrefix

at line 35
void send(Message $mail)

Sends email.

Parameters

Message $mail

Return Value

void

Exceptions

SendException