How to get more field data for changepwd.html?

I’d like to embed more data into changepwd.html, but $args[‘rs’] only holds the new password.

I can run a look-up using the recipient address in $email->Recipient, but forcing unique email addresses is not practical.

Has anyone got a better solution?

Just to clarify, I’m happy to replace changepwd.html tokens in the “Change Password Page” Email_Sending event… there’s just no other data in the $args array., which seems a bit silly as other Email_Sending events (i.e. for “Password Recovery Page”) at least get passed the relevant UserName value.

It is just a template. You can ignore it and create your own template in the Email_Sending server event. For example:

$email->Content = “My Content”;

To get the current user name, just use the function: CurrentUserName()

Thanks, I hadn’t realised that CurrentUserName() would be active if the user wasn’t logged in at the time (i.e. when requesting a password reset), but it works fine :slight_smile: