Changeset 8272
- Timestamp:
- 02/18/2019 11:50:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wordcamp-organizer-reminders/wcor-mailer.php
r8271 r8272 1 1 <?php 2 3 use function WordCamp\Logger\log; 2 4 3 5 /** … … 112 114 protected function mail( $to, $subject, $body, $headers = array(), $email, $wordcamp ) { 113 115 if ( ! $this->validate_email_addresses( $to ) ) { 116 log( 'Message not sent because of invalid recipients.', compact( 'email', 'wordcamp' ) ); 114 117 return false; 115 118 } … … 130 133 foreach ( $to as $individual_recipient ) { 131 134 if ( ! wp_mail( $individual_recipient, $subject, $body, $headers ) ) { 135 log( 'Message failed to send', compact( 'individual_recipient', 'email', 'wordcamp' ) ); 132 136 $status = false; 133 137 } … … 135 139 } else { 136 140 $status = wp_mail( $to, $subject, $body, $headers ); 141 142 if ( ! $status ) { 143 log( 'Message failed to send', compact( 'email', 'wordcamp' ) ); 144 } 137 145 } 138 146
Note: See TracChangeset
for help on using the changeset viewer.