Rough in some email content templates

pull/3779/head
Isaac Connor 2023-10-26 18:29:13 -04:00
parent e8a866e504
commit 247e0164d8
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<p>
Hi <span class="UserName"><?php
global $link;
$user = $link->User();
echo ($user ? $user->Name() : ''); ?>
</span>,</p>
<p>We have received a request to change your password.</p>
<p><a href="<?php echo $link->url() ?>" target="_blank">Click here to change your password.</a></p>
<p>or cut and paste the following into your browser:<br/>
<?php echo htmlspecialchars($link->url()) ?>
</p>
<p>The link will take you to a secure webpage where you can change your password.</p>
<p>The above link is valid for 5 minutes only.</p>
<p>Thank you,</p>
<p><?php echo ZM_WEB_TITLE ?></p>

30
email_content/template.php Executable file
View File

@ -0,0 +1,30 @@
<?php
global $skin;
global $css;
global $email_content;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title><?php echo ZM_WEB_TITLE; ?></title>
<style type="text/css">
<?php echo get_include_contents($_SERVER['DOCUMENT_ROOT'].'/skins/'.$skin.'/css/'.$css.'/email.css')?>
</style>
<base href="<?php echo ZM_URL; ?>"/>
</head>
<body>
<table width="98%" border="0">
<tr>
<td height="72" id="banner"><a href="<?php echo ZM_URL ?>" target="_blank">
<img src="<?php echo ZM_URL ?>/skins/<?php echo $skin ?>/css/<?php echo $css ?>/graphics/email_header.png" height="40" border="0" alt="<?php echo ( ZM_WEB_TITLE ) ?>"/></a></td>
</tr>
<tr>
<td align="left" valign="top" style="padding: 5px;">
<br/>
<?php echo $email_content; ?> <br/> <br/>
</td>
</tr>
</table>
</body>
</html>