Commit 1af82d9eb4c7e97f6ebbb885701c144698bd9eba
1 parent
fa50fb02
Modfied content of external emails
Committed By: Kevin Cyster Reviewed By: Megan Watson
Showing
1 changed file
with
26 additions
and
2 deletions
plugins/ktstandard/KTEmail.php
| ... | ... | @@ -140,6 +140,7 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo |
| 140 | 140 | $oSendingUser = User::get($_SESSION['userID']); |
| 141 | 141 | |
| 142 | 142 | // Create email content |
| 143 | +/* | |
| 143 | 144 | $sMessage = '<font face="arial" size="2">'; |
| 144 | 145 | $sMessage .= sprintf(_kt("Your colleague, %s, wishes you to view the document entitled '%s'."), $oSendingUser->getName(), $sDocumentName); |
| 145 | 146 | $sMessage .= " \n"; |
| ... | ... | @@ -148,6 +149,25 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo |
| 148 | 149 | $sMsgEnd .= '</font>'; |
| 149 | 150 | |
| 150 | 151 | $sTitle = sprintf(_kt("Link (ID %s): %s from %s"), $iDocumentID, $sDocumentName, $oSendingUser->getName()); |
| 152 | +*/ | |
| 153 | + $sTitle = sprintf(_kt("%s wants to share a document using KnowledgeTree"), $oSendingUser->getName()); | |
| 154 | + | |
| 155 | + $sMessage = '<br> | |
| 156 | +     '._kt('Hello').', | |
| 157 | + <br /> | |
| 158 | + <br /> | |
| 159 | +     '.sprintf(_kt('A KnowledgeTree user, %s, wants to share a document with you entitled "%s".'), $oSendingUser->getName(), $sDocumentName).' | |
| 160 | + <br /> | |
| 161 | + <br /> | |
| 162 | +     <b>'._kt('Message').':</b> | |
| 163 | + <br /> | |
| 164 | + <br /> | |
| 165 | +     '.$sComment.' | |
| 166 | + <br /> | |
| 167 | + <br /> | |
| 168 | +     '._kt('<b>KnowledgeTree is easy to use open source document management software</b><br />    that helps businesses collaborate, securely store all critical documents, address<br />    compliance challenges, and improve business processes.').' | |
| 169 | + <br /> | |
| 170 | + <br />'; | |
| 151 | 171 | |
| 152 | 172 | $sEmail = null; |
| 153 | 173 | $sEmailFrom = null; |
| ... | ... | @@ -172,9 +192,13 @@ function sendExternalEmails($aEmailAddresses, $iDocumentID, $sDocumentName, $sCo |
| 172 | 192 | $oDownloadManager->set_session($session); |
| 173 | 193 | $link = $oDownloadManager->allow_download($iDocumentID); |
| 174 | 194 | |
| 175 | - $link = "<a href=\"{$link}\">{$link}</a>"; | |
| 195 | +// $link = "<a href=\"{$link}\">{$link}</a>"; | |
| 196 | + $links = '    <a href="http://www.knowledgetree.com/products">'._kt('Learn More').'</a>'; | |
| 197 | + $links.= " | <a href=\"{$link}\">"._kt('View Document')."</a>"; | |
| 198 | + $links .= ' | <a href="http://www.knowledgetree.com/node/39">'._kt('Download Free Trial').'</a><br /><br />'; | |
| 176 | 199 | |
| 177 | - $sMsg = $sMessage.$link.$sMsgEnd; | |
| 200 | +// $sMsg = $sMessage.$link.$sMsgEnd; | |
| 201 | + $sMsg = $sMessage.$links; | |
| 178 | 202 | $res = $oEmail->send(array($sAddress), $sTitle, $sMsg); |
| 179 | 203 | |
| 180 | 204 | if (PEAR::isError($res)) { | ... | ... |