Current Record: getRegistrationActivationEmailMessage #19

getRegistrationActivationEmailSubject() Hook A hook that can be implemented in the Application Delegate Class or the Table Delegate Class? ...

Current Record: getRegistrationActivationEmailMessage #19

getRegistrationActivationEmailSubject() Hook A hook that can be implemented in the Application Delegate Class or the Table Delegate Class? ...

getRegistrationActivationEmailMessage

[Permalink]

getRegistrationActivationEmailSubject() Hook

A hook that can be implemented in the Application Delegate Class or the Table Delegate Class? to override the default registration activation email message body (the email that the user receives when they register).

Signature

function getRegistrationActivationEmailSubject( Dataface_Record &$record, string $activationURL ) : string

Parameters

Name Description
&$record A Dataface_Record object encapsulating the record that is being inserted in the users table for this registration.
$activationURL The URL where the user can go to activate their account.
returns Mixed. If this method returns a PEAR_Error object, then registration will fail with an error.

Example

<?php
class conf_ApplicationDelegate {

    function getRegistrationActivationEmailInfo(&$record, $activationURL){
        return 'Thanks for registering.  Please visit '.$activationURL.' to activate.';   
    }
}

See Also

blog comments powered by Disqus
Powered by Xataface
(c) 2005-2024 All rights reserved