Click to See Complete Forum and Search --> : Formmail like script


GurusGuru
09-21-2003, 05:00 AM
Is there a cgi script (like formmail) that I can use to send mail without actually specifying an email ID in the form. Instead of email ID, I would like to use an unique ID number. The unique ID number with the corresponding email ID can be stored in flat text file in the CGI-BIN where the formmail like script is stored. So whenever a form is submitted it searched the text file for the corresponding email and then sends the mail.

MotherNatrsSon
09-21-2003, 11:02 AM
Why do you want to do that? To hide the email form spammers?

MNS

GurusGuru
09-21-2003, 03:00 PM
Yes, to hide the email from spammers.

MotherNatrsSon
09-21-2003, 03:54 PM
They already got ya covered. There is not much you can do anymore, just like hiding your source with "no-right-click", it just does not work.

Check this out:

http://www.1-bulk-email-software.net/spider-web.html


Universal email spider software - Searches nearly any WWW URL, including search engines, usenet newsgroups, BBS, trade message boards, even those generated on-the-fly by dynamic CGI, PHP, ASP, etc. Also can spider all urls that you have collected before.

MNS

GurusGuru
09-22-2003, 01:33 AM
<input type="hidden" name="recipient" value="contact@xyz.com">

I guess it should not be difficult for the CGI experts to modify the formmail script so that instead of writing value="contact@xyz.com", one can put an ID no. (eg value="2345"). The script can then search a flat text file for the corresponding email id and send the mail/submit the form.

The flat text file can look like

2345 contact@xyz.com
2346 admin@xyz.com
2347 info@xyz.com
........

jimr451
09-22-2003, 11:17 AM
Yes, modifying the script would not be difficult. You could also just include a hash right in the script, something like:

$email_to{'1001'} = "joe@abc.com";
$email_to{'1002'} = "bill@abc.com";

etc.

Then before sending an email just substitute the number for the name. So if the "to" variable is called $to, you could do something like this:

$to = $email_to{$to};

and then let the script carry on.

Hope this helps.

-Jim

GurusGuru
09-22-2003, 11:37 PM
It would be more convinient to have a separate flat text file containing the code and the email IDs. This file can contain n number of enteries. Formmail script can be modified once to read the data from this text file. Can any of the CGI experts do this. My knowledge is limited to uploading the files. Have no clue how to modify a cgi script.

GurusGuru
11-20-2003, 03:15 AM
Perl Gurus. Need a solution.