8000 Better explain the most common problems when testing emails by javiereguiluz · Pull Request #7115 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Better explain the most common problems when testing emails #7115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added subtitles in the Troubleshooting section
  • Loading branch information
javiereguiluz committed Nov 7, 2016
commit 0388d9e006ca2b5f0691e979e37b7f16d2123224
6 changes: 6 additions & 0 deletions email/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,15 @@ to get information about the messages sent on the previous request::
Troubleshooting
---------------

Problem: The mail collector returns `null`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The email collector is only available when the profiler is enabled and collects
information, as explained in :doc:`/testing/profiling`.

Problem: The collector doesn't contain the email
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If a redirection is performed after sending the email (for example when you send
an email after a form is processed and before redirecting to another page), make
sure that the test client doesn't follow the redirects, as explained in
Expand Down
0