This project is archived and is in readonly mode.

#2713 ✓resolved
Fjan

Actionmailer does not set charset on attachments

Reported by Fjan | May 25th, 2009 @ 01:31 PM | in 3.x

Actionmailer deliberately removes the character set from attachments (line 71 of part.rb simply says: ctype_attrs.delete "charset")

While this may make sense for pictures and binaries, there are several attachments types where a charset may be necessary, such as text files, html files and icalendar attachments.

One way to solve it would be to add something like: unless real_content_type.contains?('text')

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages