Permalink
Browse files

Use message charset

  • Loading branch information...
1 parent 02538b8 commit a9c939f94c424a0b9e3a92bb1b280141c87f6195 @ndbroadbent ndbroadbent committed Jan 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/action_mailer/inline_css_hook.rb
@@ -24,13 +24,13 @@ def self.delivering_email(message)
# Add an HTML part with CSS inlined.
message.html_part do
- content_type "text/html; charset=#{charset}"
+ content_type "text/html; charset=#{msg_charset}"
body premailer.to_inline_css
end
# Add a text part with either the pre-existing text part, or one generated with premailer.
message.text_part do
- content_type "text/plain; charset=#{charset}"
+ content_type "text/plain; charset=#{msg_charset}"
body existing_text_part || premailer.to_plain_text
end

0 comments on commit a9c939f

Please sign in to comment.