In this simple PHP sendmail script, it works fine but no e-mails get sent out. Do I need to specify an SMTP address? If so, how and where? (FYI, my web host says I can use 'localhost'). Thanks
<?
$company = $_REQUEST['company'] ;
$employees = $_REQUEST['employees'] ;
$first_name = $_REQUEST['first_name'] ;
$last_name = $_REQUEST['last_name'] ;
$address1 = $_REQUEST['address1'] ;
$address2 = $_REQUEST['address2'] ;
$city = $_REQUEST['city'] ;
$state = $_REQUEST['state'] ;
$zip = $_REQUEST['zip'] ;
$phone1 = $_REQUEST['phone1'] ;
$phone2 = $_REQUEST['phone2'] ;
$phone3 = $_REQUEST['phone3'] ;
$email = $_REQUEST['email'] ;
$description = $_REQUEST['description'] ;
mail( "info@domain.com", "General Web Site Inquiry (Contact Form)",
$description, "From: $email" );
header( "Location: );
?>
<?
$company = $_REQUEST['company'] ;
$employees = $_REQUEST['employees'] ;
$first_name = $_REQUEST['first_name'] ;
$last_name = $_REQUEST['last_name'] ;
$address1 = $_REQUEST['address1'] ;
$address2 = $_REQUEST['address2'] ;
$city = $_REQUEST['city'] ;
$state = $_REQUEST['state'] ;
$zip = $_REQUEST['zip'] ;
$phone1 = $_REQUEST['phone1'] ;
$phone2 = $_REQUEST['phone2'] ;
$phone3 = $_REQUEST['phone3'] ;
$email = $_REQUEST['email'] ;
$description = $_REQUEST['description'] ;
mail( "info@domain.com", "General Web Site Inquiry (Contact Form)",
$description, "From: $email" );
header( "Location: );
?>