I successful installed the Secure Password mod, change password mod & the change email mod.
I have looked in both the FAQ and this forum, yet I have not found the answer to this.
After reading all the posts I was able to have a email sent to me (admin) when a user changes their password. But, what I cannot find is how to have an email sent to me if a user changes their email with the "change email mod."
Now, I did find many references to different types of things to this effect and I got this far from reading those posts:
In my html.pl file I added:
----------------------------------
$page_title = "Email address changed";
%rec = &get_record($in{$auth_pw_file});
$date = &get_date();
open (MAIL, "$mailprog") or &cgierr("Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Rathe Email Changed\n\n";
print MAIL "Date added: $date\n";
print MAIL "Userid: $in{'userid'}\n";
close MAIL;
&html_page_top;
------------------------
And in doing this, when the user changed their password I did get the email, but the email does not include their name or email address.
All I get in my email is this:
Sent: Monday, January 21, 2002 11:51 PM Subject: New Record Added
Date added: 01/21/2002
Userid:
----------------------------------------------------
That's really a problem 'cause I don't know who it is from or what their new email address is!
I realize I am missing a lot of code somewhere. I am not sure what code to use, or where to put it, to add the User ID's name & Email in the letter to me.
If someone could point me in the right direction I would appreciate the help.
Thanks.
Diana Rae
I have looked in both the FAQ and this forum, yet I have not found the answer to this.
After reading all the posts I was able to have a email sent to me (admin) when a user changes their password. But, what I cannot find is how to have an email sent to me if a user changes their email with the "change email mod."
Now, I did find many references to different types of things to this effect and I got this far from reading those posts:
In my html.pl file I added:
----------------------------------
$page_title = "Email address changed";
%rec = &get_record($in{$auth_pw_file});
$date = &get_date();
open (MAIL, "$mailprog") or &cgierr("Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Rathe Email Changed\n\n";
print MAIL "Date added: $date\n";
print MAIL "Userid: $in{'userid'}\n";
close MAIL;
&html_page_top;
------------------------
And in doing this, when the user changed their password I did get the email, but the email does not include their name or email address.
All I get in my email is this:
Sent: Monday, January 21, 2002 11:51 PM Subject: New Record Added
Date added: 01/21/2002
Userid:
----------------------------------------------------
That's really a problem 'cause I don't know who it is from or what their new email address is!
I realize I am missing a lot of code somewhere. I am not sure what code to use, or where to put it, to add the User ID's name & Email in the letter to me.
If someone could point me in the right direction I would appreciate the help.
Thanks.
Diana Rae