[wp-trac] [WordPress Trac] #35598: Use different error code for PHPMailer exceptions in wp_mail_failed
WordPress Trac
noreply at wordpress.org
Mon Jan 25 12:15:10 UTC 2016
#35598: Use different error code for PHPMailer exceptions in wp_mail_failed
--------------------------+------------------------------
Reporter: Kau-Boy | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Mail | Version: 4.4.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Comment (by flixos90):
What about alternatively checking `! empty( $e->getCode() )`, and if so,
use the exception code, otherwise use the `wp_mail_failed`? I guess it
would be kind of inconsistent, so I'm not sure about it - but if there
actually ''is'' an exception code, it will be more helpful than
`wp_mail_failed`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35598#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list