class CRM_Mailing_Event_BAO_Resubscribe

Class CRM_Mailing_Event_BAO_Resubscribe

Methods

static array|null
resub_to_mailing(int $job_id, int $queue_id, string $hash)

Resubscribe a contact to the groups, he/she was unsubscribed from.

static 
send_resub_response(string $queue_id, array $groups, bool $is_domain = FALSE, int $job)

Send a response email informing the contact of the groups to which he/she has been resubscribed.

Details

at line 54
static array|null resub_to_mailing(int $job_id, int $queue_id, string $hash)

Resubscribe a contact to the groups, he/she was unsubscribed from.

Parameters

int $job_id The job ID.
int $queue_id The Queue Event ID of the recipient.
string $hash The hash.

Return Value

array|null $groups Array of all groups to which the contact was added, or null if the queue event could not be found.

at line 196
static send_resub_response(string $queue_id, array $groups, bool $is_domain = FALSE, int $job)

Send a response email informing the contact of the groups to which he/she has been resubscribed.

Parameters

string $queue_id The queue event ID.
array $groups List of group IDs.
bool $is_domain Is this domain-level?.
int $job The job ID.