summaryrefslogtreecommitdiff
path: root/Postman/notifications/PostmanMailNotify.php
blob: a14a5f4ee4d2da8a10e7c2cef98e6ae3b49f420f (plain)
1
2
3
4
5
6
7
8
9
10
11
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}" );
    }
}