Jump to content

FormMail - how do I hide the recipient email??


charlie2k

Recommended Posts

Hi, new here, definitely not a PHP coder, but getting slowly into it anyway, here's a FormMail called Jack's FormMail (formerly (Matt's). It's simple and it works. The developer I found specifies this code to hide the recipient of the form contents email address:

 

$recipient = "[email protected], [email protected]";

 

The documentation I'm looking at is here

 

http://dtheatre.com/scripts/formmail_doc.php#recipienta

 

Question: where does that snippet of code GO? It's not a form variable, and I have no idea where to put it in the script. Anyone know?

 

thanks

James/ Boulder

Hi,

it's already in the php script. The value $recipient = "[email protected]"; is there.

 

I don't know how to get the form to work without the email parameter

<input type="hidden" name="recipient" value="[email protected]">

 

or how to change it so it gets the email recipient off the script. If I change or delete that input parameter in the form I get an error message when hitting the submit button. And if the email address is in the form on the HTML page, then it gets harvested.

 

?

thanks for the reply,

James

Sounds as though the form processing script checks that an email address/valid email address is passed from the form hence the error when you remove that html line.  You could edit the processing script so it doesn't check for that error; you could leave that line in but with a fake email address (let the spambots have fun) as long as you declare the real email address AFTER the processing script has retrieved form inputs and BEFORE the email is sent.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.