Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

SendGridEmailHelper Class Reference

Inheritance diagram for SendGridEmailHelper:
ZurmoBaseEmailHelper

Public Member Functions

 init ()
 loadDefaultFromAndToAddresses ()
 setApiSettings ()

Static Public Member Functions

static resolveRecipientAddressesByType ($emailMessage)

Data Fields

 $apiUsername
 $apiPassword
 $fromName
 $fromAddress
 $defaultFromAddress
 $defaultTestToAddress

Protected Member Functions

 loadApiSettings ()

Protected Attributes

 $settingsToLoad

Detailed Description

Helper class consisting of functions related to sending emails using sendgrid.

Definition at line 40 of file SendGridEmailHelper.php.


Member Function Documentation

init (  ) 

Called once per page load, will load up outbound settings from the database if available. (non-PHPdoc)

See also:
CApplicationComponent::init()

Definition at line 93 of file SendGridEmailHelper.php.

loadDefaultFromAndToAddresses (  ) 

Used to load defaultFromAddress and defaultTestToAddress

Definition at line 102 of file SendGridEmailHelper.php.

loadApiSettings (  )  [protected]

Loads api settings.

Returns:
void

Definition at line 112 of file SendGridEmailHelper.php.

setApiSettings (  ) 

Set api settings into the database.

Definition at line 142 of file SendGridEmailHelper.php.

static resolveRecipientAddressesByType ( emailMessage  )  [static]

Resolve recipient address by type.

Parameters:
EmailMessage $emailMessage
Returns:
array

Definition at line 163 of file SendGridEmailHelper.php.


Field Documentation

$settingsToLoad [protected]
Initial value:
 array(
            'apiUsername',
            'apiPassword'
        )

Definition at line 71 of file SendGridEmailHelper.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Apr 22 07:11:07 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8