Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.
 All Data Structures Functions Variables Pages
Static Public Member Functions | Data Fields
EmailMessageUtil Class Reference

Static Public Member Functions

static resolveEmailMessageFromPostData (Array &$postData, CreateEmailMessageForm $emailMessageForm, User $userToSendMessagesFrom)
 
static attachRecipientsToMessage (Array $recipients, EmailMessage $emailMessage, $type)
 
static attachFilesToMessage (Array $filesIds, $emailMessage)
 
static resolveSignatureToEmailMessage (EmailMessage $emailMessage, User $user)
 
static resolvePersonOrAccountToEmailMessage (EmailMessage $emailMessage, User $user, $toAddress=null, $relatedId=null, $relatedModelClassName=null)
 
static renderEmailAddressAsMailToOrModalLinkStringContent ($emailAddress, RedBeanModel $model)
 
static resolveTextContent ($htmlContent, $textContent)
 
static getCampaignOrAutoresponderDataByEmailMessage (EmailMessage $emailMessage)
 
static getOutboundQueuedMessages ($count=null, $excludePausedCampaignMessages=true)
 
static getOutboundErrorQueuedMessages ($count=null, $queuedEmailMessagesCount)
 
static sendQueued (EmailHelper $emailHelper, $count=null, $excludePausedCampaignMessages=true)
 
static renderEmailAddressState ($emailAddress, RedBeanModel $model)
 

Data Fields

const OUTBOUND_GLOBAL_SETTINGS = 1
 
const OUTBOUND_PERSONAL_SMTP_SETTINGS = 2
 
const OUTBOUND_PERSONAL_SENDGRID_SETTINGS = 3
 

Detailed Description

Helper class for working with Email Messages.

Definition at line 41 of file EmailMessageUtil.php.

Member Function Documentation

static resolveEmailMessageFromPostData ( Array &  $postData,
CreateEmailMessageForm  $emailMessageForm,
User  $userToSendMessagesFrom 
)
static

Given post data and an email message, populate the sender and account on the email message if possible. Also add message recipients and any attachments.

Parameters
array$postData
EmailMessage$emailMessage
User$userToSendMessagesFrom
Returns
boolean Given post data and an email message, populate the sender and account on the email message if possible. Also add message recipients and any attachments.
Parameters
array$postData
CreateEmailMessageForm$emailMessageForm
User$userToSendMessagesFrom
Returns
CreateEmailMessageForm

Definition at line 64 of file EmailMessageUtil.php.

static attachRecipientsToMessage ( Array  $recipients,
EmailMessage  $emailMessage,
  $type 
)
static

Adds recipient emails as recipients to the email message. If the recipient email already matches an person or account on the email message it will ignore it.

Parameters
Array$recipients
EmailMessage$emailMessage
integer$type

Definition at line 128 of file EmailMessageUtil.php.

static attachFilesToMessage ( Array  $filesIds,
  $emailMessage 
)
static
Parameters
array$filesIds
EmailMessage$emailMessage

Definition at line 179 of file EmailMessageUtil.php.

static resolveSignatureToEmailMessage ( EmailMessage  $emailMessage,
User  $user 
)
static

Append the email signature, if a user has one, to the htmlContent of the email message.

Parameters
EmailMessage$emailMessage
User$user

Definition at line 193 of file EmailMessageUtil.php.

static resolvePersonOrAccountToEmailMessage ( EmailMessage  $emailMessage,
User  $user,
  $toAddress = null,
  $relatedId = null,
  $relatedModelClassName = null 
)
static
Parameters
EmailMessage$emailMessage
User$user
string$toAddress
mixed$relatedId
string$relatedModelClassName

Definition at line 208 of file EmailMessageUtil.php.

static renderEmailAddressAsMailToOrModalLinkStringContent (   $emailAddress,
RedBeanModel  $model 
)
static

Based on security, render an email address as a clickable link to a modal window or just a mailto: link that will open the user's configured email client.

Parameters
EmailMessage$emailAddress
RedBeanModel$model
Returns
string $content

Definition at line 235 of file EmailMessageUtil.php.

static resolveTextContent (   $htmlContent,
  $textContent 
)
static
Parameters
string$htmlContent
string$textContent
Returns
mixed

Definition at line 286 of file EmailMessageUtil.php.

static getCampaignOrAutoresponderDataByEmailMessage ( EmailMessage  $emailMessage)
static

Resolve and check campaign email message.

Parameters
EmailMessage$emailMessage

Definition at line 304 of file EmailMessageUtil.php.

static getOutboundQueuedMessages (   $count = null,
  $excludePausedCampaignMessages = true 
)
static

Get outbound queued messages.

Parameters
null$count
bool$excludePausedCampaignMessages
Returns
array

Definition at line 328 of file EmailMessageUtil.php.

static getOutboundErrorQueuedMessages (   $count = null,
  $queuedEmailMessagesCount 
)
static

Get outbound error queued messages.

Parameters
int$count
int$queuedEmailMessagesCountCount of messages in outbox already queued.

Definition at line 338 of file EmailMessageUtil.php.

static sendQueued ( EmailHelper  $emailHelper,
  $count = null,
  $excludePausedCampaignMessages = true 
)
static

Send Queued email messages.

Parameters
EmailHelper$emailHelper
null$count
bool$excludePausedCampaignMessages
Returns
bool
Exceptions
NotSupportedException

Definition at line 363 of file EmailMessageUtil.php.

static renderEmailAddressState (   $emailAddress,
RedBeanModel  $model 
)
static

Renders email address stage based on last email activity

Parameters
String$emailAddress
RedBeanModel$model
Returns
string $content

Definition at line 401 of file EmailMessageUtil.php.


The documentation for this class was generated from the following file:
Generated on Sun Jul 12 2020 07:10:45
Account Suspended
Account Suspended
This Account has been suspended.
Contact your hosting provider for more information.