This topic is locked

Change Password Notification by email

11/4/2011 6:51:56 PM
PHPRunner General questions
Z
zeth385 author

Hey there!
I wanna know if there's a way I can email users every time their password is modified. That email has to include Username, New Password, the IP that modified the password, Date and time. (All this information is the one registered in the application's log).
I know it may be damn easy, but I'm a total n00b.
Thanks in advance.

Z
zeth385 author 11/4/2011



Check this article: http://xlinesoft.com...ord_changed.htm


It's ok... but, how do I get the IP, Date and time of the modified password, so I can send it into the mail...?

C
cgphp 11/4/2011

To get the ip address:

$_SERVER['REMOTE_ADDR']



More info here http://php.net/manual/en/reserved.variables.server.php
To get date and time:

date("Y-m-d h:i:s")



More info here http://php.net/manual/en/function.date.php