diff options
Diffstat (limited to 'Postman/notifications/PostmanMailNotify.php')
-rw-r--r-- | Postman/notifications/PostmanMailNotify.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Postman/notifications/PostmanMailNotify.php b/Postman/notifications/PostmanMailNotify.php new file mode 100644 index 0000000..a14a5f4 --- /dev/null +++ b/Postman/notifications/PostmanMailNotify.php @@ -0,0 +1,12 @@ +<?php + +class PostmanMailNotify implements Postman_Notify { + + public function send_message($message) + { + $to_email = get_bloginfo( 'admin_email' ); + $domain = get_bloginfo( 'url' ); + + mail( $to_email, "{$domain}: " . __( 'Post SMTP email error', Postman::TEXT_DOMAIN ), $message , null, "-f{$to_email}" ); + } +}
\ No newline at end of file |