I have expreienced some difficulties regarding UTF-8 encoded text in the subject header. In some clients the encoding is ok, but in others there are obvious something wrong. This occures when sending a mail using a web-form. When I hardcode the text for the subject in the script it works just well. I have also checked the encoding passed by the form with mb_detect_encoding(), and it reports UTF-8. The body seems ok though.
The following headers are sendt simultaneously to the 2 adresses from the same form.
Any suggestions?
Gmail example (OK):
To:
[email protected]
Subject: test ÆØÅ æøå
X-PHP-Script: mydomain.com/admin/medlemskap/massemail/new.php
From: Namsos Turnforening <
[email protected]>
Reply-To: Namsos Turnforening <
[email protected]>
Content-Type: multipart/alternative; boundary="=-nxs_alt_23799b75f3ab836822308092319393ff"
MIME-Version: 1.0
X-Mailer: Nomad MIME Mail 1.6.2
Date: Tue, 21 Apr 2009 13:51:36 +0200
--=-nxs_alt_23799b75f3ab836822308092319393ff
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
æøå
--=-nxs_alt_23799b75f3ab836822308092319393ff
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 7bit
æøå
--=-nxs_alt_23799b75f3ab836822308092319393ff--
Other server with RoundCube client (Error):
To:
[email protected]
Subject: test ÆØÅ æøå
X-PHP-Script: mydomain.com/admin/medlemskap/massemail/new.php
From: Namsos Turnforening <
[email protected]>
Reply-To: Namsos Turnforening <
[email protected]>
Content-Type: multipart/alternative; boundary="=-nxs_alt_3f633ebf5a2cea8504d8d01f3066e07b"
Message-Id: <5fd88a8ed6f88e200f67feabda37fd5f
MIME-Version: 1.0
X-Mailer: Nomad MIME Mail 1.6.2
Date: Tue, 21 Apr 2009 13:55:31 +0200
--=-nxs_alt_3f633ebf5a2cea8504d8d01f3066e07b
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
æøå
--=-nxs_alt_3f633ebf5a2cea8504d8d01f3066e07b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: 7bit
æøå
--=-nxs_alt_3f633ebf5a2cea8504d8d01f3066e07b--