Graeme Posted February 5, 2011 Report Share Posted February 5, 2011 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 Quote Link to comment Share on other sites More sharing options...
falkencreative Posted February 5, 2011 Report Share Posted February 5, 2011 I think you'll need to post the code you are working with in order for us to help. Quote Link to comment Share on other sites More sharing options...
Graeme Posted February 5, 2011 Author Report Share Posted February 5, 2011 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 Quote Link to comment Share on other sites More sharing options...
Wickham Posted February 5, 2011 Report Share Posted February 5, 2011 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. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted February 5, 2011 Report Share Posted February 5, 2011 <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. Quote Link to comment Share on other sites More sharing options...
Graeme Posted February 5, 2011 Author Report Share Posted February 5, 2011 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 Quote Link to comment Share on other sites More sharing options...
Graeme Posted February 8, 2011 Author Report Share Posted February 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
administrator Posted February 9, 2011 Report Share Posted February 9, 2011 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 Quote Link to comment Share on other sites More sharing options...
Graeme Posted February 9, 2011 Author Report Share Posted February 9, 2011 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.