help with order form mail
Posted: Mon Jul 16, 2007 6:38 pm
Hi
I would rather avoid swiftmail as I have my own code to cope. I think I'm getting closer.
From this code,
In this code, the mail got sent exactly the same copy to both email recipients.
The problem is that I want to send $mailto different subject and body from $Email. (eg, we want to send product code or credit card number to our own staff but we don't want a client to see our product code or his credit card number). Also I want the headers to be different so that when we get an e-mail from a client we can reply automaticly.
Please help!
I would rather avoid swiftmail as I have my own code to cope. I think I'm getting closer.
From this code,
Code: Select all
$mailto = "orders@ourdomain.com";
$subject = "Web Order";
$body = "The following confirms the details of your order:\n";
$body .= "\n\n";
$body .= "Name: " . $Name . "\n";
$body .= "Email: " . $Email . "\n";
$body .= "Other Contact Info: " . $OtherInfo . "\n";
$body .= "\n\n";
$body .= "Class A Widgets: (" . $qtyA . " * 1.25) = " . $totalA . "\n";
$body .= "Class B Widgets: (" . $qtyB . " * 2.35) = " . $totalB . "\n";
$body .= "Class C Widgets: (" . $qtyC . " * 3.45) = " . $totalC . "\n";
$body .= "\n";
$body .= "TOTALS: " . $GrandTotal . "\n";
mail($mailto, $subject, $body);
mail($Email, $subject, $body);The problem is that I want to send $mailto different subject and body from $Email. (eg, we want to send product code or credit card number to our own staff but we don't want a client to see our product code or his credit card number). Also I want the headers to be different so that when we get an e-mail from a client we can reply automaticly.
Please help!