Modules/Groupware/Email/Sender.php
\Conjoon_Modules_Groupware_Email_Sender
Package: Conjoon\Modules\Groupware\Conjoon\Modules\Groupware\Email
A utility class for sending emails.
- Author
- Thorsten-Suckow-Homberg
- Category
Methods

_applyAttachments(
$draft, $mail, $postedAttachments
=
array(), $removeAttachmentIds
=
array()
)
:
void
static
Parameters
| Name | Type | Description |
|---|---|---|
| $draft | ||
| $postedAttachments | ||
| $removeAttachmentIds |

_createAttachment(
$att, $name, $model
)
:
void
static
Parameters
| Name | Type | Description |
|---|---|---|
| $att | ||
| $name | ||
| $model |

send(
\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
Returns
Throws
| 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 |
| Type | Description |
|---|---|
| \Conjoon_Mail_Sent |
| Exception | Description |
|---|---|
| \Zend_Mail_Exception |