Jump to content

Recommended Posts

Posted

Hello All,

 

I tried setting up my CGI script for mail and it goes OK except 'From' field in my mailer says 'Nobody'

 

 

All the other fields are great.

 

Thank you,

 

Best wishes

Graeme

Posted

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

Posted

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.

Posted
<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.

Posted

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

Posted

Hello Again,

 

I tried adding

 

<input type="hidden" name="From" value=".....">

but the 'from' field in my mailer still said 'nobody'

 

is this the right syntax for the line of code?

 

Thank you

 

Best wishes

Graeme

Posted

Hi,

 

I don't mean to be a pest or to beat a broken drum ... but I would suggest just using a simple PHP script that does it.

 

Stefan

Hi Stef,

 

Thanks but not much help!

 

Best wishes

Graeme

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...