CMXX - Custom folder
This commit is contained in:
99
custom/soveliti/mail/email_template_firmware.php
Normal file
99
custom/soveliti/mail/email_template_firmware.php
Normal file
@@ -0,0 +1,99 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Email
|
||||
//------------------------------------------
|
||||
$firmare_subject = 'CustomerPortal - Firmware update available';
|
||||
$firmware_header = 'Dear customer';
|
||||
$firmware_text = 'According to our records on or more of your products can benefit from a firmware update.';
|
||||
$firmware_text_closure = 'For more information please refer to our Customer Portal or contact your supplier.';
|
||||
|
||||
$consent = 'unscribe';
|
||||
|
||||
//------------------------------------------
|
||||
// Content Email
|
||||
//------------------------------------------
|
||||
$subject = $firmare_subject;
|
||||
|
||||
$message = '
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>' . $subject . '</title>
|
||||
<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;">
|
||||
' . $firmware_header . ',
|
||||
<br>
|
||||
<br>
|
||||
'.$firmware_text.'
|
||||
<br>
|
||||
<br>
|
||||
'.$firmware_text_closure.'
|
||||
</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 . '" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">Goto Portal</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
<br>
|
||||
Kind regards,
|
||||
<br>
|
||||
<br>
|
||||
Service team
|
||||
<br>
|
||||
</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>
|
||||
<tr>
|
||||
<a style="text-decoration: none;font-size: 10px;color: #00bcd4;" href="https://'.$portalURL.'/unscribe.php?email='.$to.'">'.$consent.'</a>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>';
|
||||
Reference in New Issue
Block a user