View Full Version : php auto Email confirmation gives wrong address

27-05-2005, 03:37 PM
Hi all

me again with more PHP problems

I need to mail out a confirmation email when an order is accepted, and it works, but the email address it sends from is not the one I specified orders@bobsbits but bob@ws1.mydns.net,nz which I am guessing is the hosting server

please help as this is getting very frustrating

$headers .= "From: Bobs Bits 2005: Orders <orders@bobsbits.com>\n";
$headers .= "Reply-To: ".$email."\n";
//$headers .= "Cc: ".$email."\n";
$headers .= "X-Sender: <orders@bobsbits.com>\n";
$headers .= "X-Mailer: PHP4\n";
$headers .= "X-Priority: 3\n";
$headers .= "Return-Path: <orders@bobsbits.com>\n";
$toaddress = "nigel@webzings.com";
$mailcontent = "Customers Name: ".$firstname." ". $lastname."\r\n"
."Customers Email: ".$email."\r\n"
."Customers Phone: ".$phone."\r\n"
//put the order etc in here, may need to use an array
."Customers Fax: ".$fax."\r\n\n";

as per usual

Thanks in advance

27-05-2005, 04:57 PM
Ok problem solved

grabbed a different script and it worked first pop