php, outlook 2k3

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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.

Re: php, outlook 2k3

lrbtav wrote:
Quoted text here. Click to load it

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      = '';
$subject = 'the subject';
$message = 'hello';
$headers = 'From:' . "\r\n" .
    'Reply-To:' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);


Site Timeline