Initial commit
This commit is contained in:
40
assets/mail/Exception.php
Normal file
40
assets/mail/Exception.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* PHPMailer Exception class.
|
||||
* PHP Version 5.5.
|
||||
*
|
||||
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
|
||||
*
|
||||
* @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk>
|
||||
* @author Jim Jagielski (jimjag) <jimjag@gmail.com>
|
||||
* @author Andy Prevost (codeworxtech) <codeworxtech@users.sourceforge.net>
|
||||
* @author Brent R. Matzelle (original founder)
|
||||
* @copyright 2012 - 2020 Marcus Bointon
|
||||
* @copyright 2010 - 2012 Jim Jagielski
|
||||
* @copyright 2004 - 2009 Andy Prevost
|
||||
* @license http://www.gnu.org/copyleft/lesser.html GNU Lesser General Public License
|
||||
* @note This program is distributed in the hope that it will be useful - WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
|
||||
namespace PHPMailer\PHPMailer;
|
||||
|
||||
/**
|
||||
* PHPMailer exception handler.
|
||||
*
|
||||
* @author Marcus Bointon <phpmailer@synchromedia.co.uk>
|
||||
*/
|
||||
class Exception extends \Exception
|
||||
{
|
||||
/**
|
||||
* Prettify error message output.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function errorMessage()
|
||||
{
|
||||
return '<strong>' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "</strong><br />\n";
|
||||
}
|
||||
}
|
||||
5088
assets/mail/PHPMailer.php
Normal file
5088
assets/mail/PHPMailer.php
Normal file
File diff suppressed because it is too large
Load Diff
1458
assets/mail/SMTP.php
Normal file
1458
assets/mail/SMTP.php
Normal file
File diff suppressed because it is too large
Load Diff
45
assets/mail/email_template_firmware.php
Normal file
45
assets/mail/email_template_firmware.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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 = '
|
||||
<html>
|
||||
<head>
|
||||
<title>' . $subject . '</title>
|
||||
</head>
|
||||
<body>
|
||||
'.$firmware_header.'
|
||||
<br>
|
||||
<br>
|
||||
'.$firmware_text.'
|
||||
<br>
|
||||
<br>
|
||||
'.$firmware_text_closure.'
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://'.$portalURL.'" style="background-color: '.$color.';border: 1px solid;color: #fff;padding: 10px;text-align: center;text-decoration: none;font-size: 12px;border-radius: 5px;">Login to Portal</a>
|
||||
<br>
|
||||
<br>
|
||||
Kind regards,<br>
|
||||
<br>
|
||||
<br>
|
||||
<a href="https://'.$portalURL.'"><img src="https://'.$portalURL.emaillogo.'" alt="logo" width="10%" height="10%"/></a>
|
||||
<br>
|
||||
<a style="text-decoration: none;font-size: 10px;color: #00bcd4;" href="https://'.$portalURL.'/unscribe.php?email='.$to.'">'.$consent.'</a>
|
||||
</body>
|
||||
</html>
|
||||
';
|
||||
|
||||
47
assets/mail/email_template_new.php
Normal file
47
assets/mail/email_template_new.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$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_closure = 'For security reasons this link is only active for 10 minutes.';
|
||||
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$subject = $newuser_subject;
|
||||
|
||||
$message = '
|
||||
<html>
|
||||
<head>
|
||||
<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>
|
||||
';
|
||||
|
||||
48
assets/mail/email_template_reset.php
Normal file
48
assets/mail/email_template_reset.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$changeuser_subject = 'CustomerPortal - password reset requested';
|
||||
$changeuser_header = 'Dear CustomerPortal user';
|
||||
$changeuser_text = 'A password reset has been requested for your account. To reset your account use the link below.';
|
||||
$changeuser_credential_label = 'Link to portal:';
|
||||
$changeuser_closure = 'For security reasons this link is only active for 10 minutes.';
|
||||
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$subject = $changeuser_subject;
|
||||
|
||||
$message = '
|
||||
<html>
|
||||
<head>
|
||||
<title>' . $subject . '</title>
|
||||
</head>
|
||||
<body>
|
||||
' . $changeuser_header . ',
|
||||
<br>
|
||||
<br>
|
||||
' . $changeuser_text . '
|
||||
<h4>' . $changeuser_credential_label . '</h4>
|
||||
<ul>
|
||||
<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>
|
||||
' . $changeuser_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>
|
||||
';
|
||||
|
||||
?>
|
||||
48
assets/mail/email_template_software.php
Normal file
48
assets/mail/email_template_software.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Email
|
||||
//------------------------------------------
|
||||
$register_user_subject = 'CustomerPortal - firmware - user';
|
||||
$register_user_header = 'Dear customer';
|
||||
$register_user_text = 'Thanks for your registration. Based on your product registration we herewith provide you access to our online firmware update capability, with the following credentials:';
|
||||
$register_user_credential_label = 'User details:';
|
||||
$register_user_closure = 'This is a generic account and cannot be changed.';
|
||||
|
||||
//------------------------------------------
|
||||
// Content Email
|
||||
//------------------------------------------
|
||||
$subject = $register_user_subject;
|
||||
|
||||
$message = '
|
||||
<html>
|
||||
<head>
|
||||
<title>' . $subject . '</title>
|
||||
</head>
|
||||
<body>
|
||||
' . $register_user_header . ',
|
||||
<br>
|
||||
<br>
|
||||
' . $register_user_text . '
|
||||
<h4>' . $register_user_credential_label . '</h4>
|
||||
<ul><li>username: '.software_update_user.'</li>
|
||||
<li>password: '.software_update_pw.'</li>
|
||||
<li style="margin-top: 10px;list-style-type: none;">
|
||||
<a href="https://' . $portalURL . '" 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>
|
||||
' . $register_user_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>
|
||||
';
|
||||
|
||||
Reference in New Issue
Block a user