|
|
@@ -420,13 +420,13 @@ class Mailer < ActionMailer::Base |
|
|
|
def render_multipart(method_name, body) |
|
|
|
if Setting.plain_text_mail? |
|
|
|
content_type "text/plain" |
|
|
|
body render(:file => "#{method_name}.text.plain.rhtml", |
|
|
|
body render(:file => "#{method_name}.text.erb", |
|
|
|
:body => body, |
|
|
|
:layout => 'mailer.text.erb') |
|
|
|
else |
|
|
|
content_type "multipart/alternative" |
|
|
|
part :content_type => "text/plain", |
|
|
|
:body => render(:file => "#{method_name}.text.plain.rhtml", |
|
|
|
:body => render(:file => "#{method_name}.text.erb", |
|
|
|
:body => body, :layout => 'mailer.text.erb') |
|
|
|
part :content_type => "text/html", |
|
|
|
:body => render_message("#{method_name}.text.html.rhtml", body) |