Campaign message sender backend for email

package org.openpsa.directmarketing

 Methods

__construct (array $config, \org_openpsa_directmarketing_campaign_message_dba $message)

Parameters

$config

$message

add_member_constraints (\midcom_core_querybuilder $qb)

Adds necessary constraints to member QB to find valid entries

Parameters

$qb

\midcom_core_querybuilder&$qb The QB instance to work on

check_results (array $results)

Validate results before send

Parameters

$results

arrayArray of member objects

get_type ()

Backend type, for example 'email' or 'sms'

Returns

string

send (\org_openpsa_contacts_person_dba $person, \org_openpsa_directmarketing_campaign_member_dba $member, $token, $subject, $content, $from)

Parameters

$person

$member

$token

$subject

$content

$from

_get_attachments ()

Go trough DM2 types array for attachments

Returns

array

 Properties

 

mixed $_config

 

\org_openpsa_directmarketing_campaign_message_dba $_message