Do you have a question? Post it now! No Registration Necessary. Now with pictures!
December 21, 2006, 8:53 pm
rate this thread
sends me an email when an order has been placed. how do I make the
default 'reply-to' address the email address of the customer? I'm
hoping to click 'reply' within outlook 2003 and not have to type in
each user's email for every order. Thanks.
Re: php, outlook 2k3
Assuming that your function uses mail(), simply put the users email
address in the reply-to in extra headers section.
eg. adapted from the docs-
$to = 'email@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: firstname.lastname@example.org' . "\r\n" .
'Reply-To: your.customer@his_domian.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);