Gossamer Forum
Home : Products : DBMan : Customization :

Email Admin if Email is changed in "change Password mod"

Quote Reply
Email Admin if Email is changed in "change Password mod"
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! Unimpressed

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. Unsure

If someone could point me in the right direction I would appreciate the help.

Thanks.



Diana Rae
Subject Author Views Date
Thread Email Admin if Email is changed in "change Password mod" dianarae 4222 Jan 21, 2002, 9:34 PM
Thread Re: [dianarae] Email Admin if Email is changed in "change Password mod"
LoisC 4151 Jan 21, 2002, 9:50 PM
Thread Re: [LoisC] Email Admin if Email is changed in "change Password mod"
dianarae 4116 Jan 21, 2002, 11:17 PM
Thread Re: [dianarae] Email Admin if Email is changed in "change Password mod"
LoisC 4103 Jan 22, 2002, 2:17 AM
Post Re: [LoisC] Email Admin if Email is changed in "change Password mod"
dianarae 4038 Jan 22, 2002, 10:12 AM
Thread Re: [dianarae] Email Admin if Email is changed in "change Password mod"
Karen 4060 Jan 22, 2002, 11:20 AM
Thread Re: [Karen] Email Admin if Email is changed in "change Password mod"
Paul 4107 Jan 22, 2002, 12:37 PM
Thread Re: [RedRum] Email Admin if Email is changed in "change Password mod"
dianarae 4022 Jan 22, 2002, 10:38 PM
Thread Re: [dianarae] Email Admin if Email is changed in "change Password mod"
Karen 4055 Jan 23, 2002, 3:03 AM
Thread Email to admin (when user changes email in change email mod)
dianarae 4068 Jan 24, 2002, 10:45 AM
Post Re: [dianarae] Email to admin (when user changes email in change email mod)
dianarae 4065 Jan 25, 2002, 4:10 PM