From 04a564f7dc6d8953f162d1bc8bdd589b23fe63f5 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Sat, 3 Jan 2009 14:19:38 -0500 Subject: [PATCH] allow other types of multipart messages to be sent when using view templates --- actionmailer/lib/action_mailer/base.rb | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index c878a8d..b821439 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -471,7 +471,9 @@ module ActionMailer #:nodoc: ) end unless @parts.empty? - @content_type = "multipart/alternative" + unless @content_type =~ /^multipart/ + @content_type = "multipart/alternative" + end @parts = sort_parts(@parts, @implicit_parts_order) end end -- 1.5.6.3