Answers.Body: <p>Redirect to database puts them as mass mailings, or used to. You can read them in the UI the same as those.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T21:49:30.080Z
Answers.Text: Super! Although it would be better if it provided <pre> formatting for the text version of the email, this is a pretty useful feature as-is.
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T23:14:13.513Z
Answers.Text: I think as long as the tags were added at the display layer not part of the message, otherwise it may or may not cause a problem with unit testing for the webtests, which is why the feature was added in the first place. Not sure if web tests are still the same architecture.
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T21:17:21.343Z
Answers.LastActivityDate: 2016-06-23T21:17:21.343Z
Answers.UserDisplayName: Demerit
Body: <p>Staging and development sites typically have real outbound email turned off, and for good reason (see <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+CiviCRM+instance+from+production+to+staging">https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+CiviCRM+instance+from+production+to+staging</a>, for example).</p>
  
  <p>CiviCRM-specific ways to do this include the "Redirect to Database" setting (at /admin/setting/smtp?reset=1), and setting <code>define('CIVICRM_MAIL_LOG', ...)</code> in civicrm.settings.php</p>
  
  <p>Unfortunately, it's rather tedious to examine outbound email when testing things like tokens, templates, etc.  As a developer I can see them in the log file or database, but that's not much good for user acceptance testing.</p>
  
  <p>Is there an easy way for users to read the outbound CiviCRM email that's been sent to a log file or to the database?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-06-23T19:33:51.997Z
Comments.Text: Great question - I'd like to know too!
Comments.UserDisplayName: KarinG - Semper IT
Tags: <email><testing>
Title: Easy way to read email on staging sites?
ThreadText: # Easy way to read email on staging sites?
  
  (Asked by: username_0 on 2016-06-23)
  
  Staging and development sites typically have real outbound email turned off, and for good reason (see <https://wiki.civicrm.org/confluence/display/CRMDOC/Moving+CiviCRM+instance+from+production+to+staging>, for example).
  
  CiviCRM-specific ways to do this include the "Redirect to Database" setting (at /admin/setting/smtp?reset=1), and setting `define('CIVICRM_MAIL_LOG', ...)` in civicrm.settings.php
  
  Unfortunately, it's rather tedious to examine outbound email when testing things like tokens, templates, etc. As a developer I can see them in the log file or database, but that's not much good for user acceptance testing.
  
  Is there an easy way for users to read the outbound CiviCRM email that's been sent to a log file or to the database?
  
  **Tags:** email, testing
  
  > **Comments:**
  > **username_1**: Great question - I'd like to know too!  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-06-23. Score: 4 | Accepted answer
  
  Redirect to database puts them as mass mailings, or used to. You can read them in the UI the same as those.
  
  > **Comments:**
  > **username_0**: Super! Although it would be better if it provided <pre> formatting for the text version of the email, this is a pretty useful feature as-is.  
  > **username_2**: I think as long as the tags were added at the display layer not part of the message, otherwise it may or may not cause a problem with unit testing for the webtests, which is why the feature was added in the first place. Not sure if web tests are still the same architecture.  
  
  ---
  
  