Help needed with PHP
Posted: Mon Jan 26, 2009 1:39 pm
Hi there
Just a quick one but can someone take a quick look at the PHP below and spot why it might not work as a sendmail function.
Thanks in advance for your help.
Thanks
G
Just a quick one but can someone take a quick look at the PHP below and spot why it might not work as a sendmail function.
Thanks in advance for your help.
Code: Select all
<?php
mail("rich.saunders1981@btinternet.com","Marpatt Enquiry Form","
Body of your message:/n".
$_POST[Title]
$_POST[name]
$_POST[Company]
$_POST[Address]
$_POST[hear]
$_POST[Telephone]
$_POST[Fax]
$_POST[email]
$_POST[Enquiry]
$_POST[Bespoke]
$_POST[Classic]
$_POST[Bedroom]
$_POST[All]."
","From:$email");
header( "Location: http://www.marpatt.co.uk/thank_you.html" );
?>
G