Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Pulling Email Address -> Links v1.11

Quote Reply
Pulling Email Address -> Links v1.11
I have hacked the tables and scripts to only have the email address stored in the Users table. I have deleted the Contact Email field in the Links and Validate tables. I have tried to use a variety of codes to pull the email address from the Users table in the sub validate_records routine in the admin.cgi script.

Here are the codes I am currently using:

Code:

# Connect to Users table and obtain Email Address for UserID
$userid = $links{$id}{'UserID'};
$db2 = new Links::DBSQL $LINKS{admin_root_path} . "/defs/Users.def";
$rec = $db2->get_record ($userid, 'HASH');
$email = $rec->{'Email'};


I have replaced Contact Email with $email and added $email as a variable to pass to the email subroutines in the Admin_HTML.pm module.

And, of course, I keep getting the bad email address error message and no email is sent to the user.

I have experimented this for the past two days with no progress. I am using similar codes in the add.cgi and modify.cgi script and the codes work fine (email is sent to the admin from the email address pulled from the Users table)...I know it is more complicated with the validation function. I have also tried putting the above codes in the email subroutines in the Admin_HTML.pm file and also in the sub html_validate_form. When I put the codes in the validate form subroutine, the email address is pulled into the email-del.txt file.

If you have any suggestions for fixing the codes I've posted, I would greatly appreciate it.

Thanks in advance.

Regards,

Eliot

Subject Author Views Date
Thread Pulling Email Address -> Links v1.11 Stealth 4536 Aug 13, 2000, 9:39 AM
Post Re: Pulling Email Address -> Links v1.11
pugdog 4444 Aug 13, 2000, 10:03 AM
Thread Re: Pulling Email Address -> Links v1.11
pugdog 4451 Aug 13, 2000, 10:08 AM
Thread Re: Pulling Email Address -> Links v1.11
Stealth 4450 Aug 13, 2000, 10:14 AM
Thread Re: Pulling Email Address -> Links v1.11
pugdog 4455 Aug 13, 2000, 9:07 PM
Thread Re: Pulling Email Address -> Links v1.11
Stealth 4452 Aug 13, 2000, 9:16 PM
Thread Re: Pulling Email Address -> Links v1.11
Stealth 4424 Aug 14, 2000, 10:21 PM
Thread Re: Pulling Email Address -> Links v1.11
pugdog 4424 Aug 15, 2000, 1:30 AM
Thread Re: Pulling Email Address -> Links v1.11
Stealth 4418 Aug 15, 2000, 7:04 AM
Thread Re: Pulling Email Address -> Links v1.11
pugdog 4427 Aug 15, 2000, 8:52 AM
Thread Re: Pulling Email Address -> Links v1.11
Stealth 4396 Aug 15, 2000, 8:19 PM
Thread Re: Pulling Email Address -> Links v1.11
pugdog 4406 Aug 15, 2000, 10:57 PM
Post Re: Pulling Email Address -> Links v1.11
Stealth 4381 Aug 16, 2000, 2:05 PM