mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Adding default 8bit encoding if the body has non usascii in it
This commit is contained in:
@@ -593,6 +593,8 @@ module ActionMailer #:nodoc:
|
||||
end
|
||||
end
|
||||
|
||||
m.content_transfer_encoding = '8bit' unless m.body.only_us_ascii?
|
||||
|
||||
@mail = m
|
||||
end
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ class TestMailer < ActionMailer::Base
|
||||
cc "Foo áëô îü <extended@example.net>"
|
||||
bcc "Foo áëô îü <extended@example.net>"
|
||||
charset "utf-8"
|
||||
|
||||
|
||||
render :text => "åœö blah"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user