CM91 - RMA update
This commit is contained in:
@@ -5,8 +5,11 @@ defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
$newuser_subject = 'CustomerPortal user created';
|
||||
$newuser_header = 'Dear CustomerPortal user';
|
||||
$newuser_text = 'Your CustomerPortal administrator has provided access to the CustomerPortal. To complete your account you need to update your password via the link below.';
|
||||
$newuser_credential_label = 'Link to portal:';
|
||||
|
||||
$newuser_text = 'Your administrator has provided access to the CustomerPortal.';
|
||||
$newuser_credential_text_1 = 'Your account has been created with username ';
|
||||
$newuser_credential_text_2 = 'Please click the button below to complete your registration.';
|
||||
|
||||
$newuser_closure = 'For security reasons this link is only active for 10 minutes.';
|
||||
|
||||
//------------------------------------------
|
||||
@@ -15,33 +18,77 @@ $newuser_closure = 'For security reasons this link is only active for 10 minutes
|
||||
$subject = $newuser_subject;
|
||||
|
||||
$message = '
|
||||
<html>
|
||||
<head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>' . $subject . '</title>
|
||||
</head>
|
||||
<body>
|
||||
' . $newuser_header . ',
|
||||
<br>
|
||||
<br>
|
||||
' . $newuser_text . '
|
||||
<h4>' . $newuser_credential_label . '</h4>
|
||||
<ul><li>user: '.$post_content['username'].'</li>
|
||||
<li style="margin-top: 10px;list-style-type: none;">
|
||||
<a href="https://' . $portalURL . '/reset.php?resetkey='.$resetkey.'" style="background-color: ' . $color . ';border: 1px solid;color: #fff;padding: 10px;text-align: center;text-decoration: none;font-size: 12px;border-radius: 5px;">
|
||||
Reset Password
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<br>
|
||||
' . $newuser_closure . '
|
||||
<br>
|
||||
<br>
|
||||
Kind regards,<br>
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://'.$portalURL.'"><img src="https://'.$portalURL.emaillogo.'" alt="logo" width="10%" height="10%"/></a>
|
||||
<br>
|
||||
</body>
|
||||
</html>
|
||||
';
|
||||
<style>
|
||||
@media screen and (max-width: 600px) {
|
||||
.content {
|
||||
width: 100% !important;
|
||||
display: block !important;
|
||||
padding: 10px !important;
|
||||
}
|
||||
.header, .body, .footer {
|
||||
padding: 20px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body style="font-family: Arial, sans-serif">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td align="center" style="padding: 20px;">
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color:#005655; padding: 40px; text-align: center; color: white; font-size: 24px;">
|
||||
CustomerPortal
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $newuser_header . ',
|
||||
<br>
|
||||
<br>
|
||||
'.$newuser_text.' '.$newuser_credential_text_1.'<b>'.$post_content['username'].'</b>
|
||||
<br>
|
||||
<br>
|
||||
'.$newuser_credential_text_2.'
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Call to action Button -->
|
||||
<tr>
|
||||
<td style="padding: 0px 40px 0px 40px; text-align: center;">
|
||||
<!-- CTA Button -->
|
||||
<table cellspacing="0" cellpadding="0" style="margin: auto;">
|
||||
<tr>
|
||||
<td align="center" style="background-color: #008685; padding: 10px 20px; border-radius: 5px;">
|
||||
<a href="https://' . $portalURL . '/reset.php?resetkey='.$resetkey.'" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">Reset Password</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $newuser_closure . '
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background: url(\'https://'.$portalURL.emaillogo.'\');background-position: center center;background-repeat:no-repeat;background-size:contain;background-color: #005655; padding: 40px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
';
|
||||
Reference in New Issue
Block a user