Password Request

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
eayvl
User
Posts: 315

Password Request

Post by eayvl »

¿Where can I change the following message when I retrieve the password?

Dear Sir/Madam,
Please see below for the requested information:
Username: prueba
Password: 1234
Please feel free to contact us in case of further queries.
Best Regards,
Support

Thanks.


sticcino
User
Posts: 1043

Post by sticcino »

Email templates are in phphtml


mobhar
User
Posts: 11703

Post by mobhar »

You don't have to customize the content of html files in "phphtml" subfolder in order to replace the email body content.

You may simply use "Email_Sending" server event under "Server Events" -> "Other" -> "Password Recovery Page" for such case, for example:
$Email->Content = "Your new content goes here, ... and so forth... and so forth...";

Of course, you need additional tasks to retrieve the related information from your Database regarding password recovery process.


eayvl
User
Posts: 315

Post by eayvl »

sticcino it's a good option, but I will try to customize it.

mobhar wrote:
You may simply use "Email_Sending" server event under "Server
Events" -> "Other" -> "Password Recovery Page" for
such case, for example:
$Email->Content = "Your new content goes here, ... and so forth... and so
forth...";

mobhar, thanks.

// Email Sending event
function Email_Sending(&$Email, &$Args) {
//var_dump($Email); var_dump($Args); exit();

$Email->Content = "Username " . CurrentUserName();

return TRUE;

}

does not extract the current user.


sangnandar
User
Posts: 980

Post by sangnandar »

Try this:
$Email->Content .= "Username " . CurrentUserName();


sangnandar
User
Posts: 980

Post by sangnandar »

Please also note that CurrentUserName() is the current "LoggedIn" username.
For username that the password need to be recovered you have to ew_ExecuteScalar() to DB, or ew_ExecuteRow() to get them all (name, username, password, etc).


Post Reply