aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
diff options
context:
space:
mode:
authorMQuy <sugiacupit@gmail.com>2016-12-01 09:59:53 +0800
committerMQuy <sugiacupit@gmail.com>2016-12-01 10:18:00 +0800
commit2263769c792a32d02826837ef8df5ae5ad1e3682 (patch)
tree2c4254d75d35a2f0b63cee346899956b553ac708 /actionmailer/CHANGELOG.md
parentc4639b77378675f16c28660f43a23f2805ee6392 (diff)
downloadrails-2263769c792a32d02826837ef8df5ae5ad1e3682.tar.gz
rails-2263769c792a32d02826837ef8df5ae5ad1e3682.tar.bz2
rails-2263769c792a32d02826837ef8df5ae5ad1e3682.zip
Add changelog for custom content type
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..6bef8fc7e3 100644
--- a/actionmailer/CHANGELOG.md
+++ b/actionmailer/CHANGELOG.md
@@ -3,4 +3,16 @@
*Jeremy Daer*
+* 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*
+
Please check [5-0-stable](https://github.com/rails/rails/blob/5-0-stable/actionmailer/CHANGELOG.md) for previous changes.