This filter is called before a success notification email is sent and can be used to modify the recipient list.
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.
- $postid – the id of the post that has been created.
Note that if you ever want to suppress the notification email return an empty array of recipients.
add_filter('postie_email_notify_recipients', 'my_postie_email_notify_recipients', 10, 3); function my_postie_email_notify_recipients($recipients, $postemail, $postid) { $recipients[] = 'wayne@postieplugin.com'; return $recipients; }