Sending hebrew mails from PHP to Outlook
shimi
linux-il at shimi.net
Mon Jan 17 15:45:21 IST 2011
2011/1/17 Ori Idan <ori at helicontech.co.il>
> I am sending HTML mail in Hebrew from a server running Ubuntu 10.4 and PHP
> 5.3.2
> When sending the mail as UTF-8 with the header set to Content-type:
> text/html; charset=UTF-8 the mails are read as gibrish.
> When converting to windows-1255 (and changing the Content-type header) the
> hebrew received Ok but it is received as plain text (seeing HTML tags)
> Does anyone have any idea how to solve it? (preferably without changing
> setup in outlook)
>
> Everything works fine when sending to gmail.
>
>
>
In the HTML (between <head> and </head>), try having also a:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
tag.
If that didn't help... try sending the message as a multipart MIME message,
one part with text (text/plain) (strip_tags() to kill the HTML), and the
other as proper HTML.
I think It should do the trick...
Of course, verify that what you're sending, is, indeed, utf-8. i.e. if it's
hard coded in some file, that this file is saved encoded as utf-8.
HTH,
-- Shimi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110117/f4a147ff/attachment.html>
More information about the Linux-il
mailing list