aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-01-06 06:02:22 -0500
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-01-06 06:03:41 -0500
commite482dce0ed35bed2ab556e95a9f9d1124d65fa15 (patch)
treea648e4d2d810e2d4b362b279d7f7f75d4a7290cb /actionmailer/CHANGELOG.md
parentd06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc (diff)
parentf091bd67b3ef5f4cd85dbd70cbd11e9ad2711562 (diff)
downloadrails-e482dce0ed35bed2ab556e95a9f9d1124d65fa15.tar.gz
rails-e482dce0ed35bed2ab556e95a9f9d1124d65fa15.tar.bz2
rails-e482dce0ed35bed2ab556e95a9f9d1124d65fa15.zip
Merge pull request #27227 from MQuy/allow-custom-content-type-in-mail-body
Allow to custom content type when setting mailer body
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r--actionmailer/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md
index 3b9f503a0b..de8abcccfe 100644
--- a/actionmailer/CHANGELOG.md
+++ b/actionmailer/CHANGELOG.md
@@ -1,3 +1,15 @@
+* Mime type: allow to custom content type when setting body in headers
+ and attachments.
+
+ Example:
+
+ def test_emails
+ attachments["invoice.pdf"] = "This is test File content"
+ mail(body: "Hello there", content_type: "text/html")
+ end
+
+ *Minh Quy*
+
* Exception handling: use `rescue_from` to handle exceptions raised by
mailer actions, by message delivery, and by deferred delivery jobs.