From 58c4862adb6fa28eb801d3cf3821b7c10576e223 Mon Sep 17 00:00:00 2001 From: michael Date: Fri, 4 Jul 2003 09:15:40 +0000 Subject: [PATCH] prettified html content of email link mail --- presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php index 13f13e9..0d0c981 100644 --- a/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php +++ b/presentation/lookAndFeel/knowledgeTree/documentmanagement/emailBL.php @@ -34,18 +34,20 @@ if (checkSession()) { //if the to address is valid, send the mail global $default; $oUser = User::get($_SESSION["userID"]); + $sMessage = ""; if (isset($fToName)) { - $sMessage = "$fToName,

Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; + $sMessage .= "$fToName,

Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; } else { - $sMessage = "Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it"; + $sMessage .= "Your colleague, " . $oUser->getName() . ", wishes you to view the document entitled '" . $oDocument->getName() . "'.\n Click on the hyperlink below to view it."; } // add the link to the document to the mail - $sMessage .= ' ' . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID", $oDocument->getName()); + $sMessage .= "
" . generateControllerLink("viewDocument", "fDocumentID=$fDocumentID", $oDocument->getName()); // add optional comment if (strlen($fComment) > 0) { - $sMessage .= "

$fComment"; + $sMessage .= "

Comments:
$fComment"; } + $sMessage .= "
"; $sTitle = "Link: " . $oDocument->getName() . " from " . $oUser->getName(); -- libgit2 0.21.4