phpDocumentor

MailerAdapter
in package
implements MailerAdapterInterface

Class MailerAdapter

This class provides a communication layer with the external mailing library in order to isolate the library-specific code.

Tags
category

System

Interfaces, Classes and Traits

MailerAdapterInterface
Interface MailerAdapterInterface

Table of Contents

$mailer  : PHPMailer
PHPMailer Instance
$punycode  : Punycode
Used for punycode encoding.
$useHtmlMail  : bool
__construct()  : mixed
Class Constructor
send()  : mixed
Sends a single email.

Properties

Methods

__construct()

Class Constructor

public __construct(PHPMailer $mailer, Punycode $punycode[, BoolType $useHtmlMail = null ]) : mixed
Parameters
$mailer : PHPMailer

PHPMailer instance.

$punycode : Punycode

Punycode encoder instance.

$useHtmlMail : BoolType = null
Return values
mixed

send()

Sends a single email.

public send(EmailInterface $email) : mixed
Parameters
$email : EmailInterface

Contains email information.

Tags
throws
Exception

If mailer library fails to send the email.

Return values
mixed

Search results