diff options
author | Claudio B <claudiob@users.noreply.github.com> | 2015-12-16 23:34:11 -0800 |
---|---|---|
committer | Claudio B <claudiob@users.noreply.github.com> | 2015-12-16 23:34:11 -0800 |
commit | c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b (patch) | |
tree | dd07c74dc5a761c05b26e441bfa0865c0505ce42 /actionmailer | |
parent | 0ef5d176b807ad10e079616c132e6fc139efeb90 (diff) | |
parent | ccb6b2e87f61a92c870933b46c588a373e7c9a33 (diff) | |
download | rails-c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b.tar.gz rails-c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b.tar.bz2 rails-c4f8ce53b1f9af9585aeec9bbb0c66fc9c48ec1b.zip |
Merge pull request #22619 from akshay-vishnoi/grammar-fixes
[ci skip] Fix grammar and sentence framing
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index cbbf480da8..bb3cb1be45 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -658,18 +658,18 @@ module ActionMailer # # mail.attachments['filename.jpg'] = File.read('/path/to/filename.jpg') # - # If you do this, then Mail will take the file name and work out the mime type - # set the Content-Type, Content-Disposition, Content-Transfer-Encoding and - # base64 encode the contents of the attachment all for you. + # If you do this, then Mail will take the file name and work out the mime type. + # It will also set the Content-Type, Content-Disposition, Content-Transfer-Encoding + # and encode the contents of the attachment in Base64. # # You can also specify overrides if you want by passing a hash instead of a string: # # mail.attachments['filename.jpg'] = {mime_type: 'application/x-gzip', # content: File.read('/path/to/filename.jpg')} # - # If you want to use a different encoding than Base64, you can pass an encoding in, - # but then it is up to you to pass in the content pre-encoded, and don't expect - # Mail to know how to decode this data: + # If you want to use encoding other than Base64 then you will need to pass encoding + # type along with the pre-encoded content as Mail doesn't know how to decode the + # data: # # file_content = SpecialEncode(File.read('/path/to/filename.jpg')) # mail.attachments['filename.jpg'] = {mime_type: 'application/x-gzip', |