Filter: postie_email_reject_recipients

This filter is called before a reject notification email is sent and can be used to modify the recipient list.

At the point the filter is called there is no post created.
Parameters:
  • $recipients – an array of email address that the email will be delivered to.
  • $postemail – an array that represents the parsed email. See filter: postie_post_pre for more details.
add_filter('postie_email_reject_recipients', 'my_postie_email_reject_recipients', 10, 2);

function my_postie_email_reject_recipients($recipients, $postemail) {
 $recipients[] = 'wayne@postieplugin.com';
 return $recipients;
 }

Comments are closed.