Sunday 14 February 2010

Sending emails from a form on easyspace when using a windows server

I spent in the region of 5 hours on this one! admittley I was trying every method under the sun be it perl, php, javascript jquery.. anyways I found a very simple method that works

1)go to http://phpformgen.sourceforge.net and create a form, add a page then click on page one and start creating your fields, once you have done this and filled in all the other bits and bobs download the zip folder.

2)Open up the file processor.php and put the following line at the top of script, just under < ? php

ini_set ("sendmail_from","webmaster@MyWebSite.com");


3)Save the file :) and upload the contents to your website content folder and navigate to the www.yoursite.com/form.html file from a browser.

Hopefully you should be up and running.

No comments:

Post a Comment