class CRM_Contact_Form_Task_EmailCommon

This class provides the common functionality for sending email to one or a group of contact ids. This class is reused by all the search components in CiviCRM (since they all have send email as a task)

Constants

MAX_EMAILS_KILL_SWITCH

Properties

$_contactDetails
$_allContactDetails
$_toContactEmails

Methods

static array
domainEmails()

Generate an array of Domain email addresses.

static 
preProcessFromAddress(CRM_Core_Form $form, bool $bounce = TRUE)

Pre Process Form Addresses to be used in QUickfomr

static 
buildQuickForm(CRM_Core_Form $form)

Build the form object.

static bool|array
formRule(array $fields, array $dontCare, array $self)

Form rule.

static 
postProcess(CRM_Core_Form $form)

Process the form after the input has been submitted and validated.

static 
submit(CRM_Core_Form $form, array $formValues)

Submit the form values.

static 
saveMessageTemplate(array $formValues)

Save the template if update selected.

Details

at line 50
static array domainEmails()

Generate an array of Domain email addresses.

Return Value

array $domainEmails;

at line 65
static preProcessFromAddress(CRM_Core_Form $form, bool $bounce = TRUE)

Pre Process Form Addresses to be used in QUickfomr

Parameters

CRM_Core_Form $form
bool $bounce determine if we want to throw a status bounce.

at line 148
static buildQuickForm(CRM_Core_Form $form)

Build the form object.

Parameters

CRM_Core_Form $form

at line 388
static bool|array formRule(array $fields, array $dontCare, array $self)

Form rule.

Parameters

array $fields The input form values.
array $dontCare
array $self Additional values form 'this'.

Return Value

bool|array true if no errors, else array of errors

at line 411
static postProcess(CRM_Core_Form $form)

Process the form after the input has been submitted and validated.

Parameters

CRM_Core_Form $form

at line 431
static submit(CRM_Core_Form $form, array $formValues)

Submit the form values.

This is also accessible for testing.

Parameters

CRM_Core_Form $form
array $formValues

at line 607
static protected saveMessageTemplate(array $formValues)

Save the template if update selected.

Parameters

array $formValues