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();