Closed Bug 398262 Opened 17 years ago Closed 17 years ago

PHP mail() messages display as Asian Characters

Categories

(Thunderbird :: Mail Window Front End, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: 1212jtraceur, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20061201 Firefox/2.0.0.6 (Ubuntu-feisty)
Build Identifier: version 1.5.0.13 (20070824)

Pretty much what the title says. Mail sent by a PHP script is gibberish. See Steps to Reproduce

Reproducible: Always

Steps to Reproduce:
1. Use a PHP script to send a message with body text to yourself. Attached is what I used.
2. Check your email in Thunderbird.
3. Notice how the body text is Asian characters
Actual Results:  
The body text displays as Asian characters

Expected Results:  
The body text should display in the language it was written in.
Use this to send an email with PHP.
a misconfiguration somewhere: (1) possibly browser set to a charset ignoring utf-8 specified; (2) you don't include a content type header in the message so the recipient mua is left to guess at it; (3) possibly tbird configured to guess badly (most likely, in combination with 2. see menu view -> character encoding; folder properties default encoding; options -> display -> formatting -> fonts (!) -> default incoming encoding). Not sure if a server could be likely to be breaking it, kinda doubtful
Summary: PHP mail displays as Asian Characters → PHP mail() message display as Asian Characters
Summary: PHP mail() message display as Asian Characters → PHP mail() messages display as Asian Characters
(In reply to comment #2)
> a misconfiguration somewhere: (1) possibly browser set to a charset ignoring
> utf-8 specified; (2) you don't include a content type header in the message so
> the recipient mua is left to guess at it; (3) possibly tbird configured to
> guess badly (most likely, in combination with 2. see menu view -> character
> encoding; folder properties default encoding; options -> display -> formatting
> -> fonts (!) -> default incoming encoding). Not sure if a server could be
> likely to be breaking it, kinda doubtful
> 

Thanks, it was that I didn't pass a content-type. Sorry about such a simple bug, I'm just learning PHP.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
(we like to reserve the "fixed" resolution for fixes at this end -> i)
Resolution: FIXED → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: