Rails and Multipart Mime Messages with Inline Content

On a rather large conquest with a short period of time to figure out sending mails in multipart mime text/html messages, I ran into a horrible issue with the way Rails ActionMailer handles inline content. In short, it doesn’t do it in the current latest stable tree, I’m not sure about edge, you’ll need to check that. To
achieve this I collected different findings via the google express.

RoR Ticket #2179 – [PATCH] Ability to add inline attachments (ie, inline images for html email)

Download the two attached files, put them in your /libs directory of your project. At the bottom of your /config/environment.rb file append these two lines:

{[.ruby-snippet1 /enzymes/chili-js.php]}

About aballai

something about myself...hrmmm
This entry was posted in Ruby on Rails, Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>