phpDocumentor

EmailFactoryInterface

Interface EmailFactoryInterface

Tags
category

System

subpackage

Interfaces

Table of Contents

createAttachment()  : EmailAttachment
Creates an email attachment object
createAttachmentsHandler()  : AttachmentsHandler
Creates an attachments handler object
createContact()  : EmailContact
Creates an email contact object
createDeleter()  : EmailDeleter
Creates email deleter object
createEmail()  : Email
Creates an email object
createMailer()  : PHPMailer
Creates a PHP mailer object.
createMailerAdapter()  : MailerAdapter
Creates a mailer adapter object
createReader()  : EmailReader
Create EmailReader Object
createRepository()  : EmailRepository
Creates an email repository object
createService()  : EmailService
Creates an email service object
createWriter()  : EmailWriter
Creates an email writer object

Methods

createAttachmentsHandler()

Creates an attachments handler object

public createAttachmentsHandler([string $p_uploadsDirPath = null ]) : AttachmentsHandler
Parameters
$p_uploadsDirPath : string = null

(optional) You can specify a custom uploads directory path if you do not want the default "uploads" directory. The path must contain a "tmp" and an "attachments" directory otherwise the AttachmentsHandler class will not work properly.

Return values
AttachmentsHandler

The created attachments handler.

createContact()

Creates an email contact object

public createContact(EmailAddressInterface $emailAddress, ContactTypeInterface $contactType[, ContactNameInterface $contactName = null ]) : EmailContact
Parameters
$emailAddress : EmailAddressInterface

Email address of the contact.

$contactType : ContactTypeInterface

Contact type (see ContactType class definition).

$contactName : ContactNameInterface = null

(optional) Contact display name.

Return values
EmailContact

The created email contact.

createEmail()

Creates an email object

public createEmail([IdType $id = null ][, EmailSubjectInterface $subject = null ][, EmailContentInterface $contentHtml = null ][, EmailContentInterface $contentPlain = null ][, bool $p_isPending = true ][, ContactCollectionInterface $contacts = null ][, AttachmentCollectionInterface $attachments = null ]) : Email
Parameters
$id : IdType = null

(optional) E-Mail ID.

$subject : EmailSubjectInterface = null

(optional) E-Mail subject.

$contentHtml : EmailContentInterface = null

(optional) E-Mail HTML content.

$contentPlain : EmailContentInterface = null

(optional) E-Mail plain content.

$p_isPending : bool = true

(optional) E-Mail is pending?

$contacts : ContactCollectionInterface = null

(optional) E-Mail contacts.

$attachments : AttachmentCollectionInterface = null

(optional) E-Mail attachments.

Return values
Email

The created email.

createMailer()

Creates a PHP mailer object.

public createMailer([string $protocol = null ][, EmailMailerSettings|null $mailerSettings = null ]) : PHPMailer
Parameters
$protocol : string = null

(Optional) Provide 'smtp', 'sendmail' or 'mail' if you want to override the EMAIL_TRANSPORT constant.

$mailerSettings : EmailMailerSettings|null = null

(Optional) settings value object for mailer.

Return values
PHPMailer

The created PHP mailer.

Search results