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 = "jack@schitt.org, steve-o@jackass.com";

 

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

Link to comment
Share on other sites

Hi,

it's already in the php script. The value $recipient = "email@gigurdjieff.net"; is there.

 

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

<input type="hidden" name="recipient" value="email@gigurdjieff.net">

 

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.