Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Craffft/contao-accountmail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contao extension accountmail

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;
}