Files
mailer-dev-console/htdocs/app/mail/templates/query-template.php

107 lines
7.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
$email = $ctx['email'] ?? '';
$username = $ctx['username'] ?? '';
$domain = $ctx['domain'] ?? '';
$company = $ctx['company'] ?? '';
$github = $ctx['github'] ?? '';
$website = $ctx['website'] ?? '';
$yearText = $ctx['yearText'] ?? '';
$subject = "{$domain} - Query Response #09";
$body = <<<HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link href="https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;600;700&display=swap" rel="stylesheet" />
<style type="text/css">
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;600;700&display=swap');
.body-font { font-family: 'Lexend Deca', -apple-system !important; }
.heading-font { font-family: 'Lexend Deca', -apple-system !important; font-weight: 600; }
a { color: #1d4ed8; }
</style>
</head>
<body class="body-font" style="margin:0;padding:0;background-color:#ffffff;color:#0f172a;font-family:'Lexend Deca', -apple-system;">
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background:#ffffff;padding:24px 12px;font-family:'Lexend Deca', -apple-system;">
<tr>
<td align="center">
<table role="presentation" cellpadding="0" cellspacing="0" width="640" style="max-width:640px;width:100%;border-collapse:collapse;text-align:left;font-family:'Lexend Deca', -apple-system;">
<tr>
<td style="padding-top:28px;padding-bottom:8px;text-align:center;">
<h1 class="heading-font" style="font-size:28px;line-height:34px;margin:0;font-weight:600;color:#0f172a;text-align:center;font-family:'Lexend Deca', -apple-system;">
Query Response #09
</h1>
</td>
</tr>
<tr>
<td style="padding:18px 16px 8px 16px;background:#ffffff;font-family:'Lexend Deca', -apple-system;">
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
Hi <strong style="color:#0f172a;">{$username}</strong>,
</p>
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
<strong style="color:#0f172a;">{$domain}</strong> had received a query about createing the authentication system on the platfrom.
We're pleased to announce you that <strong style="color:#0f172a;">{$domain}</strong>
AUTH system has been successfully created. i18n isnt available yet for everywhere -so if you're comfortable with English, everything should work fine for now.
</p>
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
Weve added a few resources, such as our website and GitHub, to help you explore the AUTH system.
We're a small, quiet corner of the internet built by a few of us who still believe the
web can be yours again.
</p>
<div style="height:1px;background:#e6e9ef;margin:20px 0;"></div>
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
This query was received for the email address:
<a href="mailto:{$email}" style="color:#0f172a;font-family:'Lexend Deca', -apple-system;">{$email}</a>.
</p>
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system, BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;">
🪢 <strong style="color:#0f172a;">GitHub:</strong> {$github}<br>
♻️ <strong style="color:#0f172a;">Website:</strong> {$website}
</p>
<div style="height:1px;background:#e6e9ef;margin:20px 0;"></div>
<p style="font-size:14px;line-height:20px;color:#6b7280;margin:0 0 12px 0;font-family:'Lexend Deca', -apple-system;">
If you did not make this query, or believe we contacted the wrong person, kindly ignore this email.
However, if you have any new queries, requests, or wish to contribute, feel free to reach out to us at this email address.
</p>
<p style="font-size:16px;line-height:18px;color:#475569;margin:18px 0 0 0;font-family:'Lexend Deca', -apple-system;">
Sincerely,
</p>
<p style="font-size:16px;line-height:18px;color:#0f172a;font-weight:600;margin:6px 0 0 0;font-family:'Lexend Deca', -apple-system;">
{$domain} Support
</p>
</td>
</tr>
<tr>
<td style="padding:14px 12px 28px 12px;font-family:'Lexend Deca', -apple-system;">
<table role="presentation" cellpadding="0" cellspacing="0" width="100%" style="background:#f8fafc;padding:12px;border-radius:6px;font-family:'Lexend Deca', -apple-system;">
<tr>
<td style="text-align:center;font-size:12px;color:#6b7280;line-height:20px;font-family:'Lexend Deca', -apple-system;">
<div style="margin-bottom:4px;font-family:'Lexend Deca', -apple-system;">
<a href="https://{$domain}.in" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">{$domain}</a> |
<a href="https://{$domain}.in/support" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">Support</a> |
<a href="https://{$domain}.in/privacy-policy" style="color:inherit;text-decoration:none;font-family:'Lexend Deca', -apple-system;">Privacy Policy</a>
</div>
<div style="font-size:12px;color:#475569;font-family:'Lexend Deca', -apple-system;">
A small community under {$company}.<br>
&copy; {$yearText} {$company}. All rights reserved.
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
HTML;
return [
'label' => "{$domain} Query Response",
'subject' => $subject,
'body' => $body,
];