Skip to content

Commit

Permalink
Show 'To' address in mail notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
asig2016 committed Sep 19, 2017
1 parent 4855459 commit f335a5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mail/inc/class.mail_hooks.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ static function notification_check_mailbox()
'mail_subject' => Mail::adaptSubjectForImport($recent_message['subject']),
'mail_from' => !empty($recent_message['sender_name']) ? $recent_message['sender_name'] : $recent_message['sender_address'],
'mail_received' => $recent_message['date'],
'mail_to' => $recent_message['to_address'],
);
// save notification status
$notified_mail_uidsCache[$activeProfile][$recent_message['folder']][] = mail_ui::generateRowID($activeProfile, $recent_message['folder'], $recent_message['uid'], $_prependApp=false);
Expand All @@ -567,7 +568,7 @@ static function notification_check_mailbox()
if ($mail['mail_from'])
{
$notification_message .= "<br/><strong>".lang("From").':</strong>'. $mail["mail_from"].
"<br/><strong>".lang("To").':</strong>'. $mail["recieved"].
"<br/><strong>".lang("To").':</strong>'. $mail["mail_to"].
"<br/><strong>".lang ("subject"). ':</strong>' . $mail["mail_subject"].
"<br/><br/> -------------------------------------------------------- </br>";
}
Expand Down

0 comments on commit f335a5e

Please sign in to comment.