[wp-hackers] Bug in wp_mail

Andrew Nacin wp at andrewnacin.com
Mon Feb 22 06:53:00 UTC 2010

In this case, there are three ways to make changes to wp_mail(). One, is
using the by-reference 'phpmailer_init' action that Peter suggested before.
Two, there are separate filters for filtering the from e-mail and name
(wp_mail_from and wp_mail_from_name) -- that'll probably interest you in
this specific case. Three, the entire wp_mail() function is "pluggable" and
therefore you can re-define it in a plugin.

You could create a ticket for a feature request on
http://core.trac.wordpress.org to perhaps suggest a "Test e-mail" link next
to the admin email box in general options, that would send an email to that
address. Beyond that the core developers strongly dislike extra unnecessary
options, particularly those that can be handled by a plugin. I could see
that as being potentially useful.

On Mon, Feb 22, 2010 at 1:21 AM, James <geniosity at gmail.com> wrote:

> > Ron Guerin wrote:
> > >
> > > I thought about doing something like this myself, but I feel using
> > > plugins to fix bugs in WordPress is really not a solution, it's
> > > avoidance of the problem.  Every new copy of WP that gets installed is
> a
> > > new opportunity for the bug to manifest itself, and only further
> > > encourages people to ignore mail coming from buggy webapps running on
> > > their web servers.
> > >
> >
> > Further, the users who should be getting this mail, but are not, will
> > likely never know they're not getting it.  Surely we're not going to
> > defend _that_.

More information about the wp-hackers mailing list