aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | ActionMailer https on URL with force_ssl = trueAndrew Kampjes2015-08-141-0/+5
| | | | | | | | | | | | | | | | | | | | `config.force_ssl = true` will set config.action_mailer.default_url_options = { protocol: 'https' } If you have turned on force_ssl, and then gone to the effort of setting config.action_mailer.default_url_options = {host: 'example.com'} then you are probably pointing people back to your current app and want https on that too.
* | Revert "Merge pull request #20758 from ↵Kasper Timm Hansen2015-07-071-6/+0
| | | | | | | | | | | | | | xijo/action_mailer_message_delivery_respects_i18n_locale" This reverts commit f2a8c23654d69dd8f294971487b5abf0e5d891c3, reversing changes made to 3046c9bbe154aa717a5147091be8b495ed8969c4.
* | ActionMailer::MessageDelivery respects current I18n.localeJohannes Opper2015-07-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When #deliver_now is called all translations within the generated email will be looked up for the current I18n locale. I18n.locale = ‘de’ mail.deliver_now # Generates german email, correct In #enqueue_delivery the locale was not considered and the resulting job uses the default locale. I18n.locale = ‘de’ mail.deliver_later # Generate english email, incorrect In order to achieve a consistent behaviour the current locale is now always passed to `ActionMailer::DeliveryJob`.
* | Document config.action_mailer.deliver_later_queue_nameRafael Mendonça França2015-06-031-0/+5
| | | | | | | | | | | | Also add a CHANGELOG entry for #18587 [ci skip]
* | `assert_emails` in block form use the given number as expected valueyuuji.yaginuma2015-05-091-0/+5
| |
* | Add support for inline images to mailer previewsAndrew White2015-05-041-0/+5
| | | | | | | | | | Use a preview interceptor to search for inline cid: urls in src attributes and convert them to data urls.
* | Mailer preview now uses `url_for` to fix links to emails for apps running on ↵Remo Mueller2015-04-301-0/+5
| | | | | | | | a subdirectory, closes #19092.
* | mailer previews for `NullMail` instances. Closes #19849.Yves Senn2015-04-281-0/+7
| |
* | mailer previews, make sure labels and values line up.Yves Senn2015-04-281-0/+4
| | | | | | | | | | | | While this was true before when every `dd` had a value, this patch makes sure that everything keeps lining up even when the `dd` node is blank.
* | unify CHANGELOG format. [ci skip]Yves Senn2015-01-311-0/+2
|/
* Add assert_enqueued_emails and assert_no_enqueued_emailsGeorge Claghorn2015-01-081-0/+17
|
* Move changelog entry to the top [ci skip]Carlos Antonio da Silva2015-01-071-7/+5
|
* Add mailer suffix to generated files and classesCarlos Souza2015-01-061-0/+7
| | | | | Following the same naming convention used in controllers and jobs.
* Remove deprecate `*_path` helpers in email viewsRafael Mendonça França2015-01-041-0/+4
|
* Remove deprecated ActionMailer deliver & deliver!claudiob2015-01-041-0/+4
| | | | | These methods were deprecated in Rails 4.2 (see f4ee1147) so they can be safely removed in Rails 5.0.
* Changelog edits [ci skip]Robin Dupret2014-12-311-14/+14
|
* Template lookup now respect default locale and I18n fallbacks.Rafael Mendonça França2014-12-291-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | Given the following templates: mailer/demo.html.erb mailer/demo.en.html.erb mailer/demo.pt.html.erb Before this change for a locale that doesn't have its related file the `mailer/demo.html.erb` will be rendered even if `en` is the default locale. Now `mailer/demo.en.html.erb` has precedence over the file without locale. Also, it is possible to give a fallback. mailer/demo.pt.html.erb mailer/demo.pt-BR.html.erb So if the locale is `pt-PT`, `mailer/demo.pt.html.erb` will be rendered given the right I18n fallback configuration. Fixes #11884.
* Start Rails 5 development :tada:Rafael Mendonça França2014-11-281-63/+1
| | | | | | | We will support only Ruby >= 2.1. But right now we don't accept pull requests with syntax changes to drop support to Ruby 1.9.
* Follow-up to e2cce6cJon Atack2014-11-271-2/+2
| | | [skip ci]
* Fix CHANGELOG typo introduced in e2cce6cd [ci skip]Zachary Scott2014-11-271-1/+1
|
* Action Mailer change log passJon Atack2014-11-271-22/+21
| | | [skip ci]
* Add missing CHANGELOG entry.Guo Xiang Tan2014-11-251-0/+7
|
* let mailer templates generate URLs by default [Xavier Noria, Richard Schneeman]Xavier Noria2014-11-241-0/+7
|
* some changelog formatting. [ci skip]Yves Senn2014-10-161-1/+1
|
* Merge pull request #16974 from silp-com/mail_was_calledYves Senn2014-09-221-0/+6
| | | | ActionMailer: mark mail as called after instead of before processing it
* [ci skip] ActionView and ActionMailer CHANGELOG docs fixesAkshay Vishnoi2014-09-181-4/+4
|
* Updated rdoc / guides / release notes related to ActiveJob / ActionMailerCristian Bica2014-08-201-4/+6
|
* Extra spaceDavid Heinemeier Hansson2014-08-191-1/+0
|
* Add CHANGELOG entry for #deliver_laterDavid Heinemeier Hansson2014-08-171-0/+7
|
* Make ActionMailer::Previews methods class methods.Abdelkader Boudih2014-08-141-0/+6
|
* Deprecate `*_path` methods in mailers@schneems and @sgrif2014-07-301-0/+6
| | | | | | | | | | | Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead. Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR. Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead. The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`. Paired @sgrif & @schneems
* Raise an exception when attachments are added after `mail` was called.Yves Senn2014-07-291-0/+7
| | | | | | | | | 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.
* Rename preview_enabled option to show_previewsRafael Mendonça França2014-07-011-1/+1
|
* Add configuration to enable mail previewsLeonard Garvey2014-07-011-0/+9
| | | | | | | | | | | | | | | | | | Adds `config.action_mailer.preview_enabled` This allows mail previewing to be enabled easily in non-development environments such as staging. The default is set to true for development so no changes should be required to existing Rails applications. The mail preview path can still be configured using the existing `config.action_mailer.preview_path` configuration option. Adding this avoids devs from having to do stuff like: https://gist.github.com/lengarvey/fa2c9bd6cdbeba96526a Update actionmailer/CHANGELOG with new configuration. Update configuring guide with new configuratation. Add `config.action_mailer.preview_path` to configuring guide.
* allow preview interceptors to be registered through `config.action_mailer`.Yves Senn2014-06-151-0/+7
| | | | | | | | | | | | | | | This was partially broken because `preview_interceptors=` just assigned the raw values, whithout going through `register_preview_interceptor`. Now the Action Mailer railtie takes care of the `preview_interceptors` option. This commit is a partial revert of: Revert "Merge pull request #15739 from y-yagi/correct_doc_for_action_mailer_base" This reverts commit a15704d7f35f17d34d0118546799141d6f853656, reversing changes made to 1bd12a8609d275ad75fcc4b622ca4f5b32dc76be. /cc @kuldeepaggarwal @y-yagi
* Point master changelogs to 4-1-stable branchCarlos Antonio da Silva2014-02-251-61/+1
| | | | Remove 4-1 related entries from master [ci skip]
* tidy CHANGELOGs [ci skip]Yves Senn2014-01-301-4/+6
|
* Support underscored symbols in Action Mailer configAndrew White2014-01-261-0/+5
| | | | | | We allow the use of underscored symbols to represent classes throughout other parts of Rails so it seems incongruous that it's not supported in `register_interceptor` and `register_observer`.
* Add the ability to intercept emails before previewingAndrew White2014-01-261-0/+15
| | | | | | | | | | | | | | | | To support the ability for tools like CSS style inliners to operate on emails being previewed this commit adds a hook in a similar fashion to the existing delivery interceptor hook, e.g: class CSSInlineStyler def self.previewing_email(message) # inline CSS styles end end ActionMailer::Base.register_preview_interceptor CSSInlineStyler Fixes #13622.
* quick formatting pass through CHANGELOGS. [ci skip].Yves Senn2014-01-061-0/+2
|
* Add mailer previews feature based on mail_view gemAndrew White2013-12-171-0/+4
|
* `mail()` without arguments is a getter for the current mail.Yves Senn2013-12-021-0/+19
| | | | | | | | | | | | | | This behavior is documented in our guides (http://edgeguides.rubyonrails.org/action_mailer_basics.html#action-mailer-callbacks) but was broken in the past. This commit short curcuits the `mail` method if: 1. mail() was previously called 2. no headers are passed 3. no block is passed Closes #13090. /cc @pixeltrix
* Improve changelogsCarlos Antonio da Silva2013-11-221-7/+9
| | | | | Also make Action Mailer changelog format more consistent with the others [ci skip]
* Instrument the generation of Action Mailer messagesDaniel Schierbeck2013-10-201-0/+5
| | | | | | The processing of outbound mail is instrumented with the key `process.action_mailer`. The payload includes the mailer name as well as the mailer method.
* don't convert mailer default values to procsAlex Tsukernik2013-07-221-1/+5
| | | | | | Invoke mailer defaults as procs only if they are procs, do not convert with to_proc. That an object is convertible to a proc does not mean it's meant to be always used as a proc. Fixes #11533
* No need CHANGELOG entry for a test fixRafael Mendonça França2013-05-201-4/+1
| | | | [ci skip]
* Fix AM testcase break with mail 2.5.4. It seems that AM's testcase was wrong.kennyj2013-05-171-1/+4
|
* rails/master is now 4.1.0.betaRafael Mendonça França2013-04-291-61/+2
|
* copy-edit pass in AM changelog [ci skip]Xavier Noria2013-04-091-9/+11
|
* Use "Fixes" in place of "Fix" in changelogs for consistency [ci skip].Yves Senn2013-03-091-2/+2
|