From 35276c2da92a29132be2aaa75a63658d440e87e5 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 15 Jan 2015 14:40:00 -0800 Subject: backend for mailhost addon --- include/enotify.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/enotify.php') diff --git a/include/enotify.php b/include/enotify.php index 3fef3ba0a..6fc771c58 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -421,6 +421,14 @@ function notification($params) { logger('notification: sending notification email'); + $hn = get_pconfig($recip['channel_id'],'system','email_notify_host'); + if($hn && (! stristr(get_app()->get_hostname(),$hn))) { + // this isn't the email notification host + pop_lang(); + return; + } + + $textversion = strip_tags(html_entity_decode(bbcode(stripslashes(str_replace(array("\\r", "\\n"), array( "", "\n"), $body))),ENT_QUOTES,'UTF-8')); -- cgit v1.2.3