diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-10-05 12:17:45 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-10-05 12:17:45 +0000 |
commit | d4f1be44c403a191b250eba13798f18a1c0daed9 (patch) | |
tree | 45d99a60ca4cef9f51747e51dcd42f072c533cab /Postman | |
parent | 1b6339dcea96ad9114b01b23d5f2237508369b99 (diff) | |
download | Post-SMTP-d4f1be44c403a191b250eba13798f18a1c0daed9.zip |
add filter to change the notify email
Diffstat (limited to 'Postman')
-rw-r--r-- | Postman/notifications/PostmanMailNotify.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Postman/notifications/PostmanMailNotify.php b/Postman/notifications/PostmanMailNotify.php index 795afaa..0313f7f 100644 --- a/Postman/notifications/PostmanMailNotify.php +++ b/Postman/notifications/PostmanMailNotify.php @@ -4,7 +4,7 @@ class PostmanMailNotify implements Postman_Notify { public function send_message($message) { - $to_email = get_bloginfo( 'admin_email' ); + $to_email = apply_filters( 'post_smtp_notify_email',get_bloginfo( 'admin_email' ) ); $domain = get_bloginfo( 'url' ); mail( $to_email, "{$domain}: " . __( 'Post SMTP email error', Postman::TEXT_DOMAIN ), $message , '', "-f{$to_email}" ); |