Reply to Re: reply-to works with some but not mail clients

Your name:

Reply:


Posted by Carl on 12/13/06 23:53

A.Translator wrote:
> As I am just beginning to learn php I had to fish a free form script from the
> web. The script works fine, it processes the data filled in, including the
> sender's email address and sends an email to me with the data.
>
> When I hit the reply-button in my default email client (TheBat!), all is well
> and a new email with the sender's address in the to: - field is generated.
>
> But when that same email is opened in Outlook Express, and I hit the reply-to
> button, the to: field only shows the name of the sender, not the full email
> address (it does appear in the body of the message though).
>
> What do I have to change so that someone using OE can just hirt the reply
> button to respond to an email generated by the form?
>
>> message cut <<
>
> mail($mailto, $subject, $messageproper, "From: \"$email\" <$email>\r\nReply-To:
> \"$name\" <$email>\r\nX-Mailer: chfeedback.php 2.04" );
> header( "Location: $thankyouurl" );
> exit ;
>
>

Adriana,

I'm not sure this will address your problem, as I don't currently have
access to the mentioned mail clients for testing, but I don't believe
your message headers conform to the "Internet Message Format"
standards.
See http://www.ietf.org/rfc/rfc2822.txt

The "Reply-To:" field value is expected to be in address-list format,
while you are adding the address in mailbox format. In short, try
sending only the email address as the value to the Reply-To field, not
the name.

Hope that helps,
Carl.

[Back to original 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

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