You are here: Re: php, outlook 2k3 « PHP Programming Language « IT news, forums, messages
Re: php, outlook 2k3

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация