48 lines
1.5 KiB
PHP
48 lines
1.5 KiB
PHP
<?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>
|
|
';
|
|
|
|
?>
|