I send mails from action mailer with the environment.rb config:
ActionMailer::Base.default_charset ='utf-8'
The application runs on a linux server (same problem on Mac OS X).
Now, if I send ä ö ü é è à or other European characters it works
fine for every email client except for the hotmail accounts (the funny
part is, that it is a bug on the hotmail site. It defaults everything
to Windows Latin on the page and ignores the utf-8, except if you
change the encoding manualy to utf-8 in the browser. Of course this
doesn't work for ie7 but for all other browsers.)
The email source looks like this:
Content-Type: text/plain; charset=utf-8
äüäèàà
I tried several workarounds but it didn't work... (base64, multi-part,
etc.)
Does anyone has any experience in writing mails through ruby on rails
with European characters to hotmail accounts.
Because we have many customers with hotmail accounts, we need to send
them proper emails. But I realy have no ideas left.
O.K. thanks for all the feedback. We finally found the solution:
We had to send a multipart mail with html (with entities) and plain
(utf-8) in order to support the following (web-) mail application:
gmx.de
apple mail
gmail
hotmal
outlook