2011/1/17 Ori Idan <[email protected]>

> 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
[email protected]
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to