Your cart is currently empty!
how to send password in mail after status changed to approved
—
by
Hello
I want that when admin changed the affiliate status from pending to accepted, in the mail i send the password too.
I have changed the notification email format like below:-
Congratulations [user_login],
Your request to join the Affiliate Program has been approved.
Your login details are:-
Username: [username]
Password: [password]
But instead of sending password it is sending [password].
How can i do that?
Posted in Affiliates Pro
Comments
One response to “how to send password in mail after status changed to approved”
Hi Andreas,
Thanks for mentioning.
This happens because in the first notification the password is sent before it’s been stored in the database. All the passwords are stored encrypted in the database, you can see that if you have a look at your wp_users table, in a way that it is almost impossible to decrypt and consequently impossible to retrieve as plain text.
In your case, you should send the password in the first email. I will also update our documentation regarding the [password] token to reflect that note.
Kind regards,
George