Make WordPress Core

Ticket #23291: 23291.diff

File 23291.diff, 1.1 KB (added by iandunn, 12 years ago)
  • wp-includes/pluggable.php

     
    356356                        }
    357357                        $phpmailer->AddAddress( $recipient, $recipient_name);
    358358                } catch ( phpmailerException $e ) {
     359                        trigger_error( $e->getMessage(), E_USER_NOTICE );
    359360                        continue;
    360361                }
    361362        }
     
    378379                                }
    379380                                $phpmailer->AddCc( $recipient, $recipient_name );
    380381                        } catch ( phpmailerException $e ) {
     382                                trigger_error( $e->getMessage(), E_USER_NOTICE );
    381383                                continue;
    382384                        }
    383385                }
     
    396398                                }
    397399                                $phpmailer->AddBcc( $recipient, $recipient_name );
    398400                        } catch ( phpmailerException $e ) {
     401                                trigger_error( $e->getMessage(), E_USER_NOTICE );
    399402                                continue;
    400403                        }
    401404                }
     
    439442                        try {
    440443                                $phpmailer->AddAttachment($attachment);
    441444                        } catch ( phpmailerException $e ) {
     445                                trigger_error( $e->getMessage(), E_USER_NOTICE );
    442446                                continue;
    443447                        }
    444448                }
     
    450454        try {
    451455                $phpmailer->Send();
    452456        } catch ( phpmailerException $e ) {
     457                trigger_error( $e->getMessage(), E_USER_NOTICE );
    453458                return false;
    454459        }
    455460