@@ -418,11 +418,16 class Mailer < ActionMailer::Base | |||
|
418 | 418 | def render_multipart(method_name, body) |
|
419 | 419 | if Setting.plain_text_mail? |
|
420 | 420 | content_type "text/plain" |
|
421 |
body render(:file => "#{method_name}.text.plain.rhtml", |
|
|
421 | body render(:file => "#{method_name}.text.plain.rhtml", | |
|
422 | :body => body, | |
|
423 | :layout => 'mailer.text.plain.erb') | |
|
422 | 424 | else |
|
423 | 425 | content_type "multipart/alternative" |
|
424 | part :content_type => "text/plain", :body => render(:file => "#{method_name}.text.plain.rhtml", :body => body, :layout => 'mailer.text.plain.erb') | |
|
425 |
|
|
|
426 | part :content_type => "text/plain", | |
|
427 | :body => render(:file => "#{method_name}.text.plain.rhtml", | |
|
428 | :body => body, :layout => 'mailer.text.plain.erb') | |
|
429 | part :content_type => "text/html", | |
|
430 | :body => render_message("#{method_name}.text.html.rhtml", body) | |
|
426 | 431 | end |
|
427 | 432 | end |
|
428 | 433 |
General Comments 0
You need to be logged in to leave comments.
Login now