aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-27 14:26:44 -0800
committerfriendica <info@friendica.com>2011-12-27 14:26:44 -0800
commit0f87f84cfbe026e6f049026d8f8c4d4db22dcc56 (patch)
tree8fddf9b2169e874ffe407e3d84493947b0993c85 /include
parent5c7df6e964561ebb5e334865717db03222bf3e1a (diff)
downloadvolse-hubzilla-0f87f84cfbe026e6f049026d8f8c4d4db22dcc56.tar.gz
volse-hubzilla-0f87f84cfbe026e6f049026d8f8c4d4db22dcc56.tar.bz2
volse-hubzilla-0f87f84cfbe026e6f049026d8f8c4d4db22dcc56.zip
notification testing
Diffstat (limited to 'include')
-rw-r--r--include/enotify.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 49a8597b9..0c6d666b5 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -2,7 +2,7 @@
function notification($params) {
- logger('notification: entry');
+ logger('notification: entry', LOGGER_DEBUG);
$a = get_app();
$banner = t('Friendica Notification');
@@ -12,10 +12,10 @@ function notification($params) {
$sitename = get_config('config','sitename');
$site_admin = sprintf( t('%s Administrator'), $sitename);
- $sender_name = t('Administrator');
+ $sender_name = $product;
$sender_email = t('noreply') . '@' . $a->get_hostname();
- if(in_array('item',$params)) {
+ if(array_key_exists('item',$params)) {
$title = $params['item']['title'];
$body = $params['item']['body'];
}
@@ -78,7 +78,7 @@ function notification($params) {
require_once('bbcode.php');
if(intval($params['notify_flags']) & intval($params['type'])) {
- logger('notification: sending email');
+ logger('notification: sending notification email');
push_lang($params['language']);
@@ -100,7 +100,7 @@ function notification($params) {
'$source_photo' => $params['source_photo'],
'$username' => $params['to_name'],
'$hsitelink' => $hsitelink,
- '$itemlink' => $itemlink,
+ '$itemlink' => '<a href="' . $itemlink . '">' . $itemlink . '</a>',
'$thanks' => $thanks,
'$site_admin' => $site_admin,
'$title' => stripslashes($title),
@@ -127,7 +127,7 @@ function notification($params) {
'$textversion' => $textversion,
));
- logger('text: ' . $email_text_body);
+// logger('text: ' . $email_text_body);
// use the EmailNotification library to send the message
@@ -172,7 +172,7 @@ class enotify {
// generate a multipart/alternative message header
$messageHeader =
"From: {$params['fromName']} <{$params['fromEmail']}>\n" .
- "Reply-To: {$params['replyTo']}\n" .
+ "Reply-To: {$params['fromName']} <{$params['replyTo']}>\n" .
"MIME-Version: 1.0\n" .
"Content-Type: multipart/alternative; boundary=\"{$mimeBoundary}\"";
@@ -197,7 +197,7 @@ class enotify {
$multipartMessageBody, // message body
$messageHeader // message headers
);
- logger("enotify::send returns " . $res, LOGGER_DEBUG);
+ logger("notification: enotify::send returns " . $res, LOGGER_DEBUG);
}
}
?> \ No newline at end of file