diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-07-29 09:21:47 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-07-29 09:24:06 +0200 |
commit | b8120ab14d695d5ae7392193a6135b5e7cef9c80 (patch) | |
tree | 0f9115cf688c19e6b3180aca03a2e844a399493e /actionmailer/CHANGELOG.md | |
parent | 6924f848c45897004ba9cc4f96c032286dcce346 (diff) | |
download | rails-b8120ab14d695d5ae7392193a6135b5e7cef9c80.tar.gz rails-b8120ab14d695d5ae7392193a6135b5e7cef9c80.tar.bz2 rails-b8120ab14d695d5ae7392193a6135b5e7cef9c80.zip |
Raise an exception when attachments are added after `mail` was called.
Closes #16163
Adding attachments after a call to `mail` will result in invalid emails.
This is related to the fact, that `mail` is making the required preparations
before the email is ready to be sent. These change depending on your
added attachments.
Diffstat (limited to 'actionmailer/CHANGELOG.md')
-rw-r--r-- | actionmailer/CHANGELOG.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 4e3a9daf7d..bcfde6d96f 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,3 +1,10 @@ +* Raise an exception when attachments are added after `mail` was called. + This is a safeguard to prevent invalid emails. + + Fixes #16163. + + *Yves Senn* + * Add `config.action_mailer.show_previews` configuration option. This config option can be used to enable the mail preview in environments |