This project is archived and is in readonly mode.
Rails 3 ActionMailer attachments incorrectly shown inline by Yahoo! Mail
Reported by Mohit Jain | March 3rd, 2011 @ 11:45 PM
I sent attachments to Yahoo mail from a few different sources and I tried different content types, transfer encodings (e.g., Base64), different kinds of attachments, etc. The only constant I can find between those that Yahoo shows properly and those it fails on is that the successes do not use parameter folding, e.g.,
Success
Content-Disposition: attachment; filename="event.ics"
Fail
Content-Disposition: attachment;
filename="event.ics"
This (correct) folding appears to be hardwired into the mail gem that Rails uses and I didn't try another way of truly isolating it; I have to say I'd be surprised if that were really the problem.
Regardless, Yahoo is rendering non-inline attachments as inline, so if this is a significant problem for your customer base, I'd take it up with Yahoo directly; maybe they'll fix it or offer you a more concrete statement about what triggers it so you can work around it. For what it's worth, Yahoo does allow the user to access the attachment correctly as it should with Content-Disposition of "attachment"; it's just also showing it as if the Disposition where "inline."
The problem is with New yahoo mail. (Claasic yahoo, Gmail,
Hotmail every where its fine.)
Detailed stuff is present here
[Stackoverflow Question](http://stackoverflow.com/questions/5062531/rails-3-actionmailer-att... "Stackoverflow Question"
Comments and changes to this ticket
-
Andrew White March 4th, 2011 @ 07:26 AM
- Importance changed from to Low
The RFC talks about parameter values of less than 78 characters being presented as a single token - what happens if you send a file with a really long name?
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>