EmailPW sending just [Session.NewPW]
Hi - I have at the top of my emailPW.php file this code:
<?php
if (!session_id()) session_start();
if(isset($_POST["Send_x"])) {
$_SESSION["NewPW"] = "".WA_RandomPassword(9, true, true, true, "") ."";
}?>
The page is generating the random password properly I think and it is being written to the DB.
However when the email behaviour sends out the new password, the recipient gets this:
Your new password is: [Session.NewPW]
The other fields (like username) are being generated fine. But the new password doesn't display - just the reference for it.
Any help would be really appreciated!
Thanks
Dan