Posted by Oliver Grδtz on 05/25/07 02:54
Robertu schrieb:
> Hi at all
> I'ld want inserrt into my emails body the ? euro symbol therefore I wrote
> the header of my emails like :
>
> $headers="From: $mail_from\n\r";
> $headers.='X-Mailer: PHP/' . phpversion()."\r\n";
> $headers.="MIME-Version: 1.0\r\n";
> $headers.= "Content-Type: text/html; charset=utf-8\r\n";
> $headers.="Content-Transfer-Encoding: 8bit\r\n\r\n";
>
> But when emails attive to the ? euro sybnol arrive like a "?" and
> $headers="From: $mail_from\n\r";
> $headers.='X-Mailer: PHP/' . phpversion()."\r\n";
> $headers.="MIME-Version: 1.0\r\n";
> $headers.= "Content-Type: text/html; charset=utf-8\r\n";
> $headers.="Content-Transfer-Encoding: 8bit\r\n\r\n";
> arrive like the first part of the body and not like header
So the wrong display of the Euro symbol is NOT your problem since your
e-mail headers aren't even read as headers. Are you sure that you sent
them as headers an not as part of the body? Does pure HTML mail even
work (I always create multipart mails...)?
Recommendation: Use a mailing script like PHPMailer or (my tip)
HtmlMimeMail5.
OLLi
--
When asked how I use PHP, I have a simple answer. I use it to feed my
family.
[posted on php.internals]
Navigation:
[Reply to this message]
|