Ticket #1285 (closed defect: fixed)
Sendmail uses wrong encoding
| Reported by: | gertschi83 | Owned by: | bharat |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0 |
| Version: | GIT HEAD | Keywords: | |
| Cc: |
Description
Steps to reproduce
Change the default language to German and reset your password. You will receive an email where not every character is readable. At least Thunderbird shows "Passwort zurücksetzen anfordern" instead of "Passwort zurücksetzen anfordern".
Cause
The Content-Type is set to ISO-8859-1 instead of UTF-8.
Solution
Change the Content-Type header in the following files:
./modules/notification/helpers/notification.php ./modules/user/controllers/password.php ./modules/gallery/controllers/user_profile.php
The correct way to set the header is:
->header("Content-Type", "text/html; charset=UTF-8")
Change History
Note: See
TracTickets for help on using
tickets.