[wp-trac] [WordPress Trac] #23291: wp_mail should handle phpmailer exceptions instead of ignoring them

WordPress Trac noreply at wordpress.org
Sun Jan 27 05:00:08 UTC 2013


#23291: wp_mail should handle phpmailer exceptions instead of ignoring them
-------------------------+------------------------------
 Reporter:  mark-k       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Mail         |     Version:  3.5
 Severity:  minor        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by mark-k):

 Replying to [comment:9 bpetty]:

 > All that aside though, there's plenty of perfectly acceptable ways to
 validate an email address '''before''' calling `wp_mail()`, and I'm fairly
 certain most locations that call `wp_mail()` do that already as any
 properly written code should when written for an application that doesn't
 support exceptions.

 Sure, but what happens if your shared host upgraded php and forgot to
 compile mail into it, or if you use a plugin to make wp_mail send mail via
 SMTP and the SMTP server is down or your password was changed? Right now
 you don't get any chance to even know about that.
 And BTW the most popular contact form plugin WCF7 doesn't validate
 addresses otherwise we wouldn't be discussing this thing here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23291#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list