Jump to content

Mail CGI


Graeme

Recommended Posts

Thank you,

 

*************************************************************************

 

<form method="post" action="http://www..com/cgi-bin/userform.cgi

<input type="hidden" name="Form title" value=" Club Contact">

<input type="hidden" name="SendMailTo" value="gj.d@.......com">

<input type="hidden" name="redirect" value="http://www..com/......./yourresponse.html">

<input type="hidden" value="www.......org.uk" name="Club">

 

<table class="email">

<tbody><tr>

<tr>

<td><p class="formtxt">Message subject:</p></td>

<td><input id="subject" name="subject" type="text"></td>

</tr>

<td><p class="formtxt">Your name:</p></td>

<td><input id="name" name="name" type="text"></td>

</tr>

<tr>

<td><p class="formtxt">Your Phone:</p></td>

<td><input id="phone" name="phone" type="text"></td>

</tr>

<tr>

<td><p class="formtxt">Your email:</p></td>

<td><input id="email" name="email" type="text"></td>

</tr>

<tr>

<td colspan="2"><p class="formtxt">Your message:</p></td>

</tr>

<tr>

<td colspan="2"><textarea id="message" name="message" rows="6" cols="20"></textarea></td>

</tr>

<tr>

<td>

</td>

<td>

<input class="emailbtn" value="Send" type="submit">

<input class="emailbtn" value="Reset" type="reset">

</td>

</tr>

</table>

 

**********************************************************************

 

Best wishes

Graeme

Link to comment
Share on other sites

Your action in the code above needs "> afer .cgi, but that may not solve the problem.

 

We need to see the code in userform.cgi because that will have the code for the "From". If it says Nobody at present, change it to the url you want showing as the From address.

Link to comment
Share on other sites

<input type="hidden" name="Form title" value=" Club Contact">

<input type="hidden" name="SendMailTo" value="gj.d@.......com">

<input type="hidden" name="redirect" value="http://www..com/......./yourresponse.html">

<input type="hidden" value="www.......org.uk" name="Club">

It's also possible that you need another hidden field that specifies the "from" address. As Wickham said above though, you probably need to post the code from the .cgi file, since that will show how the form is processed.

Link to comment
Share on other sites

It's also possible that you need another hidden field that specifies the "from" address. As Wickham said above though, you probably need to post the code from the .cgi file, since that will show how the form is processed.

 

Thank you to the both of you. I'll try the hidden field first but I don't know if I am allowed access to the code as it is my ISP's, the same company as my telephone and broadband provider. I know I should maybe host the site otherwise but it is convenient for now.

 

Brdy wishes

Greme

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...