PHP mail() messages display as Asian Characters

RESOLVED INVALID

Status

Thunderbird
Mail Window Front End
RESOLVED INVALID
11 years ago
11 years ago

People

(Reporter: 1212jtraceur, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

11 years ago
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.
(Reporter)

Comment 1

11 years ago
Created attachment 283175 [details]
PHP script to send an email.

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
(Reporter)

Updated

11 years ago
Summary: PHP mail displays as Asian Characters → PHP mail() message display as Asian Characters
(Reporter)

Updated

11 years ago
Summary: PHP mail() message display as Asian Characters → PHP mail() messages display as Asian Characters
(Reporter)

Comment 3

11 years ago
(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
Last Resolved: 11 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.