|
Posted by Cliff Smith on 12/22/06 02:43
lrbtav wrote:
> Hi, I have a php script that grabs user information from a form and
> 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.
>
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-
<?php
$to = 'your.address@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: website@example.com' . "\r\n" .
'Reply-To: your.customer@his_domian.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Cheers,
Cliff.
Navigation:
[Reply to this message]
|