diff --git a/plugins/ktstandard/KTEmail.php b/plugins/ktstandard/KTEmail.php index 8b0c581..8b9a358 100644 --- a/plugins/ktstandard/KTEmail.php +++ b/plugins/ktstandard/KTEmail.php @@ -140,6 +140,7 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo $oSendingUser = User::get($_SESSION['userID']); // Create email content +/* $sMessage = ''; $sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName); $sMessage .= " \n"; @@ -148,6 +149,25 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo $sMsgEnd .= ''; $sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName()); +*/ + $sTitle = sprintf(_kt("%s wants to share a document using KnowledgeTree"), $oSendingUser->getName()); + + $sMessage = '
+     '._kt('Hello').', +
+
+     '.sprintf(_kt('A KnowledgeTree user, %s, wants to share a document with you entitled "%s".'), $oSendingUser->getName(), $sDocumentName).' +
+
+     '._kt('Message').': +
+
+     '.$sComment.' +
+
+     '._kt('KnowledgeTree is easy to use open source document management software
    that helps businesses collaborate, securely store all critical documents, address
    compliance challenges, and improve business processes.').' +
+
'; $sEmail = null; $sEmailFrom = null; @@ -172,9 +192,13 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo $oDownloadManager->set_session($session); $link = $oDownloadManager->allow_download($iDocumentID); - $link = "{$link}"; +// $link = "{$link}"; + $links = '    '._kt('Learn More').''; + $links.= " | "._kt('View Document').""; + $links .= ' | '._kt('Download Free Trial').'

'; - $sMsg = $sMessage.$link.$sMsgEnd; +// $sMsg = $sMessage.$link.$sMsgEnd; + $sMsg = $sMessage.$links; $res = $oEmail->send(array($sAddress), $sTitle, $sMsg); if (PEAR::isError($res)) {