diff options
author | Mikel Lindsaar <raasdnil@gmail.com> | 2010-04-08 21:11:42 +1000 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-04-11 18:04:55 +1000 |
commit | e157a3d2224253303719c92b262413dfc735b6de (patch) | |
tree | 7dc413990f432c6cc9ee10ec4a8bbf310e608872 /actionmailer/lib | |
parent | 6c6bef245a7b636cbd6a0162cc5061d8c040aadb (diff) | |
download | rails-e157a3d2224253303719c92b262413dfc735b6de.tar.gz rails-e157a3d2224253303719c92b262413dfc735b6de.tar.bz2 rails-e157a3d2224253303719c92b262413dfc735b6de.zip |
Added explict setting of charset in set_fields! method to make sure Mail has the user defined default
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index 5dbe1738a1..c96ceb72f9 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -579,6 +579,7 @@ module ActionMailer #:nodoc: def set_fields!(headers, charset) #:nodoc: m = @_message + m.charset = charset m.subject ||= headers.delete(:subject) if headers[:subject] m.to ||= headers.delete(:to) if headers[:to] m.from ||= headers.delete(:from) if headers[:from] |