activateRecipient

The activateRecipient hook is triggered when a new newsletter recipient is added. It passes the e-mail address, the recipient IDs and the channel IDs as argument and does not expect a return value.

Available

from Contao 2.8.0-RC1.

Parameters

  1. string $strEmail

    The newsletter recipient's email address.

  2. array $arrRecipients

    please add a description for this parameter

  3. array $arrChannels

    please add a description for this parameter

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['activateRecipient'][] = array('MyClass', 'myActivateRecipient');

// MyClass.php
public function myActivateRecipient($strEmail, $arrRecipients, $arrChannels)
{
    // Do something
}

More information

References

See also

results matching ""

    No results matching ""