Skip to content
Snippets Groups Projects
Commit 8f3135e1 authored by Uma's avatar Uma
Browse files

Fixes #1036 Customer portal Email template has been updated

parent 40c9eded
No related branches found
No related tags found
1 merge request!591Fixes #1036 Customer portal Email template has been updated
...@@ -151,63 +151,65 @@ if (defined('VTIGER_UPGRADE')) { ...@@ -151,63 +151,65 @@ if (defined('VTIGER_UPGRADE')) {
if ($db->num_rows($result)) { if ($db->num_rows($result)) {
$templateId = $db->query_result($result, 0, 'templateid'); $templateId = $db->query_result($result, 0, 'templateid');
} }
$portalLoginTemplateRecord = EmailTemplates_Record_Model::getInstanceById($templateId); if(!empty($templateId)){
$portalLoginTemplateContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> $portalLoginTemplateRecord = EmailTemplates_Record_Model::getInstanceById($templateId);
<html> $portalLoginTemplateContent = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<head> <html>
<title></title> <head>
</head> <title></title>
<body class="scayt-enabled"> </head>
<!-- <center> --> <body class="scayt-enabled">
<table border="0" cellpadding="0" cellspacing="0" class="borderGrey" width="600px" style="margin-left:0px;"> <!-- <center> -->
<tbody> <table border="0" cellpadding="0" cellspacing="0" class="borderGrey" width="600px" style="margin-left:0px;">
<tr> <tbody>
<td colspan="6"><!-- Begin Pre header --><!-- // End Pre header \ --></td> <tr>
</tr> <td colspan="6"><!-- Begin Pre header --><!-- // End Pre header \ --></td>
<tr style="height:50px;"> </tr>
<td colspan="6" style=" <tr style="height:50px;">
font-family: Helvetica,Verdana,sans-serif"> <td colspan="6" style="
<div style="margin-bottom:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"><br /> font-family: Helvetica,Verdana,sans-serif">
Dear $contacts-firstname$ $contacts-lastname$,</div> <div style="margin-bottom:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);"><br />
Dear $contacts-firstname$ $contacts-lastname$,</div>
<div style="margin-top:20px;margin-bottom:20px; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">As our customer, you can be assured of getting excellent support from our team. I would like to take this opportunity to introduce the portal we have setup for valuable customers like you. You can submit questions/issues via the portal, see past issues and responses. In addition, Portal provides you access to our knowledge base and documents we shared with you in the past.
</div> <div style="margin-top:20px;margin-bottom:20px; color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">As our customer, you can be assured of getting excellent support from our team. I would like to take this opportunity to introduce the portal we have setup for valuable customers like you. You can submit questions/issues via the portal, see past issues and responses. In addition, Portal provides you access to our knowledge base and documents we shared with you in the past.
</div>
<div style="margin-top:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">$URL$ to login to the portal, with the credentials below.</div>
<div style="margin-top:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">$URL$ to login to the portal, with the credentials below.</div>
<div style="margin-top:20px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Your Username: $login_name$</div>
<div style="margin-top:20px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Your Username: $login_name$</div>
<div style="margin-bottom:20px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Your Password: $password$</div>
<div class="gmail_extra" style="margin-top:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Thank you,<br /> <div style="margin-bottom:20px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Your Password: $password$</div>
$contacts-smownerid$</div> <div class="gmail_extra" style="margin-top:10px;color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 14px; background-color: rgb(255, 255, 255);">Thank you,<br />
$contacts-smownerid$</div>
</td>
</tr> </td>
<tr> </tr>
<td colspan="6" style="font-family: Helvetica,Verdana,sans-serif;font-size: 11px;color: #666666;"> <tr>
<table border="0" cellpadding="4" cellspacing="0" width="100%"> <td colspan="6" style="font-family: Helvetica,Verdana,sans-serif;font-size: 11px;color: #666666;">
<tbody> <table border="0" cellpadding="4" cellspacing="0" width="100%">
<!--copy right data--> <tbody>
<tr> <!--copy right data-->
<td valign="top" style=" <tr>
padding-left: 0px; <td valign="top" style="
padding-right: 0px; padding-left: 0px;
width:350px"> padding-right: 0px;
<div style="margin-top:20px;"><em>Powered By <a href="www.vtiger.com">Vtiger</a><div> width:350px">
</td> <div style="margin-top:20px;"><em>Powered By <a href="www.vtiger.com">Vtiger</a><div>
</tr> </td>
<!--subscribers links--> </tr>
</tbody> <!--subscribers links-->
</table> </tbody>
</td> </table>
</tr> </td>
</tbody> </tr>
</table> </tbody>
<!-- </center> --> </table>
</body> <!-- </center> -->
</html>'; </body>
$portalLoginTemplateRecord->set('body', $portalLoginTemplateContent); </html>';
$portalLoginTemplateRecord->save(); $portalLoginTemplateRecord->set('body', $portalLoginTemplateContent);
$portalLoginTemplateId = $portalLoginTemplateRecord->getId(); $portalLoginTemplateRecord->save();
echo "Customer portal login template created.<br>"; $portalLoginTemplateId = $portalLoginTemplateRecord->getId();
echo "Customer portal login template created.<br>";
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment