Forum Home
Press F1
 
Thread ID: 58272 2005-05-27 03:37:00 php auto Email confirmation gives wrong address Morgenmuffel (187) Press F1
Post ID Timestamp Content User
358808 2005-05-27 03:37:00 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
Morgenmuffel (187)
358809 2005-05-27 04:57:00 Ok problem solved

grabbed a different script and it worked first pop
Morgenmuffel (187)
1