aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/CHANGELOG.md
Commit message (Collapse)AuthorAgeFilesLines
...
* [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
|
* Update CHANGELOGSRafael Mendonça França2013-02-261-0/+3
|
* Preparing for 4.0.0.beta1 releaseDavid Heinemeier Hansson2013-02-251-1/+1
|
* Allow passing interpolations to `#default_i18n_subject`, e.g.:Olek Janiszewski2013-01-241-1/+18
| | | | | | | | | | | | | | | # config/locales/en.yml en: user_mailer: welcome: subject: 'Hello, %{username}' # app/mailers/user_mailer.rb class UserMailer < ActionMailer::Base def welcome(user) mail(subject: default_i18n_subject(username: user.name)) end end
* Merge pull request #8568 from inossidabile/fix-in_clause_lengthJon Leighton2013-01-111-0/+5
|\ | | | | Correct source for in_clause_length for eager loading (Fix for #8474)
| * Eager loading made to use relation's in_clause_length instead of host's one ↵Boris Staal2012-12-201-0/+5
| | | | | | | | (fixes #8474)
* | Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-2/+0
|/ | | | with Rails 4.0.
* Fix Action Mailer changelog indenation to match other changelogsCarlos Antonio da Silva2012-12-191-23/+23
| | | | Also some minor improvements to other changelogs. [ci skip]
* Convert changelogs to 1.9 hash style and fix some formatting [ci skip]Carlos Antonio da Silva2012-12-141-2/+2
|
* The return value from mailer methods is not relevant.Yves Senn2012-12-101-1/+1
|
* Explicit multipart messages respect :parts_orderNate Berkopec2012-11-191-0/+3
| | | | | | | | | As issue #7978, the order in which ActionMailer sends multipart messages could be unintentionally overwritten if a block is passed to the mail method. This changes the mail method such that :parts_order is always respected, regardless of whether a block is passed to mail.
* Revert "Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-10-301-5/+0
| | | | | | | | | | | | `Mailer.foo(*args).deliver`." This reverts commit 7e0cf563639bc7508da381b1b8321c7a89be1aa8. Conflicts: actionmailer/CHANGELOG.md See discussion at https://github.com/rails/rails/commit/7e0cf563639bc7508da381b1b8321c7a89be1aa8#commitcomment-2075489
* Do not render views when mail() isn't called. (NullMail refactoring)Yves Senn2012-10-281-0/+5
|
* Add missing CHANGELOG related to addition of callbacks to mailers.Aditya Sanghi2012-10-101-0/+4
|
* Support `Mailer.deliver_foo(*args)` as a synonym for ↵Jon Leighton2012-09-281-0/+5
| | | | | | | `Mailer.foo(*args).deliver`. This makes it easy to write e.g. `Mailer.expects(:deliver_foo)` when testing code that calls the mailer.
* fix bad changelog exampleAditya Sanghi2012-09-071-1/+1
|
* Allow delivery method options to be set per mail instanceAditya Sanghi2012-09-041-0/+16
|
* CHANGELOGs are now per branchXavier Noria2012-08-281-533/+1
| | | | | | | | | | Changes in old branches needed to be manually synched in CHANGELOGs of newer ones. This has proven to be brittle, sometimes one just forgets this manual step. With this commit we switch to CHANGELOGs per branch. When a new major version is cut from master, the CHANGELOGs in master start being blank. A link to the CHANGELOG of the previous branch allows anyone interested to follow the history.
* Sync CHANGELOGs [ci skip]Rafael Mendonça França2012-08-111-0/+16
|
* Revert "Merge pull request #7202 from asanghi/perform_deliveries_in_mail"José Valim2012-08-071-7/+0
| | | | | | Reverting because it feels backward to specify a delivery to not be performed while the e-mail is being composed. It is simpler (and makes more sense) to delegate the responsibility to the calling code.
* add changelog for #7202Aditya Sanghi2012-08-071-0/+7
|
* Improve docs, changelog and release notes for Action Mailer default_options=Carlos Antonio da Silva2012-07-061-2/+2
| | | | [ci skip]
* Introduce config.action_mailer.default_from=Robert Pankowecki2012-07-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Allows to easily set :from, :replay_to, etc. options in config/application.rb using simple syntax: config.action_mailer.default_options = {from:"no-replay@example.org"} This was not possible using #default method because config.action_mailer.default(from: "no-replay@example.org") is interpreated as reader method and just returns nil. It would not call ActionMailer::Base.default method. The only way of calling this method from config/application.rb was to use the direct syntax which looks ugly in my opinion: config.assets.enabled = false config.assets.version = '1.0' config.encoding = "utf-8" config.action_mailer.default_url_options= { host:"example.org", protocol:"https" } ActionMailer::Base.default(from: "no-replay@example.org")
* Updated ChangelogsBrian Cardarella2012-06-231-0/+2
|
* raise an error if no implicit mailer template could be foundDamien Mathieu2012-06-201-0/+4
|
* Sync CHANGLOG with the 3-2-stable branchRafael Mendonça França2012-06-011-0/+10
|