Sending hebrew mails from PHP to Outlook
Ori Idan
ori at helicontech.co.il
Mon Jan 17 16:49:24 IST 2011
When sending with charset=windows-1255 it works.
The problem was that the headers where terminated with \r\n instead of \n
only.
As for the UTF-8 problem, I am not going to solve it now. Windows-1255 is
enough for the customer.
Again spending hours of work because of Microsoft bugs.
--
Ori Idan
On Mon, Jan 17, 2011 at 3:48 PM, David Ronkin <dronkin at gmail.com> wrote:
> Try to use charset=iso-8859-8 instead (it's more correct for hebrew i
> think).
> David
>
>
> 2011/1/17 shimi <linux-il at shimi.net>
>
>> 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
>>
>>
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>>
>
>
> --
> בברכה,
> דוד רונקין
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110117/41e1e4bb/attachment-0001.html>
More information about the Linux-il
mailing list