Class MailerAdapter
Class MailerAdapter
This class provides a communication layer with the external mailing library
in order to isolate the library-specific code.
-
MailerAdapter
implements
MailerAdapterInterface
Methods summary
public
|
#
__construct( PHPMailer $mailer, TrueBV\Punycode $punycode )
Class Constructor
Parameters
- $mailer
- PHPMailer instance.
- $punycode
- Punycode encoder instance.
|
public
|
#
send( EmailInterface $email )
Sends a single email.
Parameters
- $email
- Contains email information.
Throws
Exception If mailer library fails to send the email.
Implementation of
|
Properties summary
protected
PHPMailer
|
$mailer
|
|
protected
TrueBV\Punycode
|
$punycode
Used for punycode encoding.
Used for punycode encoding.
|
|