Correo electrónico de respuesta a la dirección

I'm having a problem with an email reply to address. For some reason the MIME type is showing in the reply address.

Here are the headers

$headers = 'From: The Client <'.$emailTo.'>' . "\r\n" . 'Reply-To: info@mydomain.com';
    $headers .= "MIME-Version: 1.0\r\n";
    $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

When I get the mail, if I hit reply, in the address field I get this:

"1.0" <info@mydomain.commime-version:>

I'm probably missing something obvious, but I can't work it out.

¡Salud

preguntado el 04 de julio de 12 a las 09:07

2 Respuestas

Te estás perdiendo el \r\n:

$headers = "From: The Client <".$emailTo.">\r\n";
$headers .= "Reply-To: info@mydomain.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

Respondido 04 Jul 12, 09:07

D'oh! Thought it was something simple. Been driving me mad. Thanks you VERY much, both of you :) - martillos diminutos

Te lo perdiste \r\n after Reply-To.

$headers = 'From: The Client <'.$emailTo.'>' . "\r\n" . 'Reply-To: info@mydomain.com' . "\r\n";

Respondido 04 Jul 12, 09:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.