aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_mailer_basics.md
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate `*_path` methods in mailers@schneems and @sgrif2014-07-301-0/+16
| | | | | | | | | | | 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
* fix bug in email with name example codeSam DeCesare2014-06-111-1/+1
| | | | | | The display name in the email "to" field needs to be quoted otherwise your email-sending service will fail when trying to deliver mail to user's with commas in their name (i.e. John Smith, M.D.).
* [ci skip] Refine Action Mailer guide.Juanito Fatas2014-06-111-10/+19
| | | | | | | | | | | | | | | | | * Wrap 80 words if possible. * Make attachment hash options more readable. (L239-L243) Before: ![screenshot 2014-06-11 02 59 54](https://cloud.githubusercontent.com/assets/1000669/3235432/a91d0464-f0d2-11e3-9e4a-6af2b2a83f1a.png) After: ![screenshot 2014-06-11 02 59 36](https://cloud.githubusercontent.com/assets/1000669/3235428/a47b28dc-f0d2-11e3-806c-cfaedd3f15df.png) * L619 Wrap "location" in code: `"location"`. * L628 Use actual section name. * L697 Remove unnecessary `./` when refer to other guide.
* Use generated binstubs in guides examples.Josef Šimánek2014-05-201-3/+3
| | | | [ci skip]
* Merge pull request #13728 from semenyukdmitriy/masterYves Senn2014-01-221-1/+1
|\ | | | | Added missing `file` delivery method to the Configuration Guide
| * [ci skip] Added missing `file` delivery methodSemenyuk Dmitriy2014-01-221-1/+1
| |
* | docs should say `email` not `Email`. [ci skip]Yves Senn2014-01-201-2/+2
| |
* | docs, hyperlink the `Mail gem` in Action Mailer guide. [ci skip]Yves Senn2014-01-201-2/+2
|/
* Minor align BR tags with HTML void - with reference to the generators code ↵AvnerCohen2013-10-091-1/+1
| | | | change - https://github.com/rails/rails/commit/f038d4cc5fe1ac21f92c7e32c61ff85a0c816f3f
* Use Ruby on Rails Coding Conventions for code examples in the guidesPaul Nikitochkin2013-09-061-14/+14
| | | | | | | | * Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
* AM Guide: Should be "different formats".Peter Jaros2013-07-241-1/+1
|
* Using preferred find_by syntax in guidesCristian Planas2013-07-011-1/+1
|
* Remove a duplicated section [ci skip]Robin Dupret2013-06-291-20/+5
| | | | | | Attachments were previously covered so remove the useless part. Just move a note about multipart headers set when the mail method is triggered to the kept section.
* correct no-replay@example.com to no-reply@example.comKyle Fritz2013-05-291-1/+1
|
* Remove double spaces in guidesSunny Ripert2013-05-281-1/+1
|
* Consistent use of one space only after punctuationSunny Ripert2013-05-281-1/+1
|
* Make guide description more conciseFiona Tay2013-04-211-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-04-111-15/+10
|\ | | | | | | | | Conflicts: guides/source/action_mailer_basics.md
| * Proofreading tweaks to the Mailer guideJonathan Roes2013-04-011-15/+15
| |
* | get the Action Mailer guide ready. [ci skip]Yves Senn2013-04-091-117/+238
|/
* move mailer testing examples into the testing guide.Yves Senn2013-03-251-25/+2
| | | | | | | | Closes #9325. I adjusted the example and the description in the testing guide and simply linked from the mailer to the testing guide. This way we don't have to maintain two separate places.
* copy edits [ci skip]Vijay Dev2013-03-101-3/+3
|
* Adding a note for :body option in `mail` method.Fabrizio Regini2013-03-081-0/+13
|
* Merge pull request #9359 from justinwb/masterCarlos Antonio da Silva2013-02-271-1/+0
|\ | | | | Removed template_root as a configuration option
| * Removed template_root as a configuration optionJustin Bingham2013-02-211-1/+0
| | | | | | Removed template root from actionmailer configuration options as it seems to have been pulled out completely in favor of explicit definition via template_path / template_name.
* | Update guide doc to use migration shortcutsQihuan Piao2013-02-251-1/+1
| |
* | Wrap `around_action` word with <code> tagQihuan Piao2013-02-251-1/+1
|/
* Merge pull request #9084 from senny/document_am_delivieries_resetJosé Valim2013-01-261-0/+2
|\ | | | | document the behavior of `ActionMailer::Base.delivieries` in tests
| * document the behavior of `ActionMailer::Base.delivieries` in testsYves Senn2013-01-261-0/+2
| | | | | | | | thanks @danielpuglisi
* | document how to create custom rails environmentsYves Senn2013-01-211-1/+1
| |
* | s/it's/its/Akira Matsuda2013-01-181-1/+1
| | | | | | | | [ci skip]
* | spelling correction for AM interceptorsYves Senn2013-01-171-1/+1
|/
* document Intercepters in ActionMailer guideYves Senn2013-01-161-0/+20
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-061-1/+1
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Move background jobs to the 'jobs' branch until fully baked. Not shipping ↵Jeremy Kemper2012-12-211-23/+0
| | | | with Rails 4.0.
* `config.action_mailer.async` is no longer usedAndy Lindeman2012-12-101-1/+0
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-12-081-5/+5
|\
| * Remove reference to background queue in mailer guide.Steve Klabnik2012-12-071-2/+0
| | | | | | | | | | Mailers are always async now, and we already discuss queueing lower down in the guide.
| * Remove references to Rails versions.Steve Klabnik2012-12-071-3/+1
| | | | | | | | | | | | | | | | There's no reason for guides to reference old behaviors. They should be current as of the versions of Rails that they ship with, and including older information just clutters thing. I discussed this change with @fxn and he agrees.
| * Punctuation, capitalization, grammar fixes in rails guidesKatie Oldaker2012-12-071-0/+4
| |
* | update guides to use _action callbacks [ci skip]Francesco Rodriguez2012-12-071-4/+4
|/
* Add Mailer Callback section to Mailer guidesAditya Sanghi2012-12-021-1/+52
|
* Normalize on 'After reading this guide, you will know:'Steve Klabnik2012-11-291-0/+2
| | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
* Remove 'This guide is based on ' warnings.Steve Klabnik2012-11-291-2/+0
| | | | It's obvious that the guide is based on this version of Rails, and may not be backwards compatible.
* Explicit multipart messages respect :parts_orderNate Berkopec2012-11-191-17/+1
| | | | | | | | | 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.
* Action mailer can take an array for template_dirMalcolm Locke2012-11-091-1/+1
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-111-1/+1
|\ | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * Update guides/source/action_mailer_basics.mdAdrien Lamothe2012-10-061-1/+1
| |
* | Update test locationsMike Moore2012-10-091-1/+1
|/ | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
* Removed duplicate line describing "default_options".Cory Logan2012-09-231-1/+0
| | | | [ci skip]