UseBB Community

The official board for UseBB help and discussion

UseBB Community » Bug Reports » [INVALID] No charset declaration in emails

[INVALID] No charset declaration in emails

Page: 1

Author Post
Member
Registered: Jan 2006
Posts: 11
Location: Israel
Email sent by UseBB does not declare the message charset, and as a result, utf-8 mail is not shown correctly on many email clients.
As far as I know, the missing header is something like:
Content-Type: text/plain; charset="UTF-8"
« Last edit by Dietrich on Tue Oct 10, 2006 1:19 pm. »
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Normally, a content-type is set:
$headers[] = 'Content-Type: text/plain; charset='.$charset;


If you're using mbstring, mb_send_mail() should set the content-ype, if I am right.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jan 2006
Posts: 11
Location: Israel
Hmm... the notification I got when your reply was posted did contain this header; but when my own board sends notifications, it comes with no content-type header. Strange.
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Try to run the following file on your host and post what it says:
<?php

var_dump(function_exists('mb_send_mail'));

?>
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jan 2006
Posts: 11
Location: Israel
Seems like it doesn't exist: bool(false)
I wonder how common it is for web hosts not to have mbstring enabled; is it just my host?
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Then you should receive emails with the content-type set.

Ar you running UseBB 1.0.2 with all the latest file versions?
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Jan 2006
Posts: 11
Location: Israel
No, I'm still using 1.0.1 (with my home-made Hebrew translation + a few hacks in the bbcode, which means that upgrading can be a bit tricky).
I'll try to upgrade to 1.0.2 in the next few days and see if it helps.
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Please update to 1.0.2 asap.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Bug Reports » [INVALID] No charset declaration in emails

UseBB Community is powered by UseBB 1 Forum Software