Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#15687 closed enhancement (wontfix)

debug/echo wordpress emails

Reported by: numediaweb Owned by:
Priority: normal Milestone:
Component: Mail Version: 3.0.2
Severity: normal Keywords: close
Cc: Focuses:

Description

in a testing environment, devs and theme designers needs a way to debug the sent emails from wordpress without actually sending real emails "outside":
We need a menu/function/variable where we set a debug mode for emails, that way wordpress knows that we don't want to send real emails outside but just a test: this way it echos back the email.

Change History (2)

#1 @nacin
16 years ago

  • Keywords close added; test debug echo emails removed

"Debug WordPress Emails" sounds like an excellent name for a plugin. :-)

#2 @westi
16 years ago

  • Milestone Awaiting Review
  • Resolutionwontfix
  • Status newclosed

And the code is half written for you too.

http://unit-tests.trac.wordpress.org/browser/wp-testlib/mock-mailer.php

You can just create a derived class to do this.

Note: See TracTickets for help on using tickets.