Contact Form and Script

Associate
Joined
6 Feb 2003
Posts
751
Location
Sutton
I am trying to get a contact form to work using the html below in the contact.html

<td>
<form method="post" action="sendmail.php">
Email: <input name="email" type="text"/><br/>
Message:<br/>
<textarea name="message" rows="15" cols="40">
</textarea><br/>
<input type="submit"/>
</form>
&nbsp; </td>

the sendmail.php is as follows

<?
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;

mail( "[email protected]", "Feedback Form Results",
$message, "From: $email" );
header( "Location: index.htm" );
?>

I have put this on my server at 34sp.com which I beleive is using linux servers, and it works fine. Put it on the domain I want it to work on and its just not doing it...no e-mail coming through to me at all.

The domain is on streamline using a windows server.

Is anyone on streamline here that could give me some help please.

Thanks
 
Example on how to script PHP on windows


You need to make sure you include the function:

ini_set("sendmail_from", "[email protected]");

(replacing [email protected] with either a variable or an email address).

All emails must be sent either to or from a valid mailbox on your account.
 
Back
Top Bottom