Modules/Groupware/Email/Sender.php

Show: inherited
Table of Contents

\Conjoon_Modules_Groupware_Email_Sender

Package: Conjoon\Modules\Groupware\Conjoon\Modules\Groupware\Email

A utility class for sending emails.

Author
Thorsten-Suckow-Homberg  
Category
Email  

Methods

methodprivate__construct( ) : void

Constructor.

Private to enforce static behavior

methodprotected_applyAttachments(  $draft,  $mail,  $postedAttachments = array(),  $removeAttachmentIds = array() ) : void
static

Parameters
Name Type Description
$draft
$mail
$postedAttachments
$removeAttachmentIds
methodprotected_createAttachment(  $att,  $name,  $model ) : void
static

Parameters
Name Type Description
$att
$name
$model
methodpublicsend( \Conjoon_Modules_Groupware_Email_Draft $draft, \Conjoon_Modules_Groupware_Email_Account $account, array $postedAttachments = array(), array $removeAttachmentIds = array() ) : \Conjoon_Mail_Sent
static

Sends the draft for the specified account

Parameters
Name Type Description
$draft \Conjoon_Modules_Groupware_Email_Draft

The draft to send

$account \Conjoon_Modules_Groupware_Email_Account

The account to use to send this email with

$postedAttachments array

an array with additional posted attachments or attachments that need to get renamed

$removeAttachmentIds array

An array with attachment ids that need to be removed from the list of existing attachments

Returns
Type Description
\Conjoon_Mail_Sent
Throws
Exception Description
\Zend_Mail_Exception
Documentation was generated by DocBlox 0.18.1.