craffft/contao-accountmail

This package is abandoned and no longer maintained. No replacement package was suggested.

Login data emails for contao accounts.

1.3.0 2015-05-03 23:38 UTC

This package is not auto-updated.

Last update: 2020-08-21 19:59:31 UTC


README

What is accountmail

Accountmail sends emails to new members and users in contao. If a member or a user gets a new password, an email will also be sent. In the backend, the email contents can be changed.

License

This Contao extension is licensed under the terms of the LGPLv3. http://www.gnu.org/licenses/lgpl-3.0.html

Hooks

$GLOBALS['TL_HOOKS']['replaceAccountMailParameters'][] = array('Hooks', 'replaceAccountMailParameters');

/**
 * @param $strType
 * @param $arrParameters
 * @param $dc
 * @return array
 */
public function replaceAccountMailParameters($strType, $arrParameters, $dc)
{
    switch ($strType) {
        case 'emailNewMember':
            // Do anything
            break;

        case 'emailChangedMemberPassword':
            // Do anything
            break;

        case 'emailNewUser':
            // Do anything
            break;

        case 'emailChangedUserPassword':
            // Do anything
            break;
    }

    return $arrParameters;
}