mirror of
https://github.com/xodivorce/mailer-dev-console.git
synced 2025-12-19 23:59:34 +05:30
(chore): initial MVP release
This commit is contained in:
108
htdocs/app/mail/templates/approved-template.php
Normal file
108
htdocs/app/mail/templates/approved-template.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?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 #10";
|
||||
|
||||
$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 #10
|
||||
</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 (the things..).
|
||||
We're pleased to announce you that your <strong style="color:#0f172a;">{$domain}</strong>
|
||||
query has been approved. Do you have any other questions or suggestions? We're always here to help.
|
||||
</p>
|
||||
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
|
||||
We reviewed your recommendations and we want to thank you for your input.
|
||||
We're a small, quiet corner of the internet, did you want to join us to grow it further?
|
||||
|
||||
Send your github username via reply to this email and we will get back to you;
|
||||
After accepting the invitation, you can start contributing to the project.
|
||||
</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 by 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>
|
||||
</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, kidnly 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>
|
||||
© {$yearText} {$company}. All rights reserved.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
HTML;
|
||||
|
||||
return [
|
||||
'label' => "{$domain} Approved Temp.",
|
||||
'subject' => $subject,
|
||||
'body' => $body,
|
||||
];
|
||||
102
htdocs/app/mail/templates/declined-template.php
Normal file
102
htdocs/app/mail/templates/declined-template.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?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 #11";
|
||||
|
||||
$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 #11
|
||||
</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 (the things..).
|
||||
We're so sorry to announce you that your <strong style="color:#0f172a;">{$domain}</strong>
|
||||
query has been declined. Do you have any other questions or suggestions? We're always here to help.
|
||||
</p>
|
||||
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
|
||||
We reviewed your recommendations and we appreciate your valuable input;
|
||||
but unfortunately, we are unable to implement your suggestions at this time.
|
||||
</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 by the email address:
|
||||
<a href="mailto:{$email}" style="color:#0f172a;font-family:'Lexend Deca', -apple-system;">{$email}</a>.
|
||||
</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, kidnly 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>
|
||||
© {$yearText} {$company}. All rights reserved.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
HTML;
|
||||
|
||||
return [
|
||||
'label' => "{$domain} Declined Temp.",
|
||||
'subject' => $subject,
|
||||
'body' => $body,
|
||||
];
|
||||
89
htdocs/app/mail/templates/loader.php
Normal file
89
htdocs/app/mail/templates/loader.php
Normal file
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
// app/mail/templates/loader.php
|
||||
|
||||
/**
|
||||
* Static map: do NOT use $domain here (no ctx available yet)
|
||||
*/
|
||||
function mailTemplateMap(): array
|
||||
{
|
||||
return [
|
||||
'quary' => [
|
||||
'file' => __DIR__ . '/query-template.php',
|
||||
],
|
||||
'thanks' => [
|
||||
'file' => __DIR__ . '/thanks-template.php',
|
||||
],
|
||||
'approve' => [
|
||||
'file' => __DIR__ . '/approved-template.php',
|
||||
],
|
||||
'decline' => [
|
||||
'file' => __DIR__ . '/declined-template.php',
|
||||
],
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Load a single template by key.
|
||||
*/
|
||||
function loadMailTemplate(string $key, array $ctx): array
|
||||
{
|
||||
$map = mailTemplateMap();
|
||||
|
||||
if (!isset($map[$key])) {
|
||||
throw new RuntimeException("Unknown mail template key: {$key}");
|
||||
}
|
||||
|
||||
$file = $map[$key]['file'];
|
||||
$label = $map[$key]['label'];
|
||||
|
||||
// Make $ctx visible inside template file
|
||||
$template = require $file;
|
||||
|
||||
if (!is_array($template)) {
|
||||
throw new RuntimeException("Template file {$file} did not return array");
|
||||
}
|
||||
|
||||
// attach meta
|
||||
$template['key'] = $key;
|
||||
$template['label'] = $template['label'] ?? $label;
|
||||
|
||||
return $template;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build index for dropdown (dynamic domain support)
|
||||
*/
|
||||
function getMailTemplatesIndex(array $ctx): array
|
||||
{
|
||||
$map = mailTemplateMap();
|
||||
$index = [];
|
||||
$domain = $ctx['domain'] ?? '';
|
||||
|
||||
foreach ($map as $key => $meta) {
|
||||
|
||||
$label = $meta['label'];
|
||||
|
||||
if ($domain) {
|
||||
if ($key === 'quary') {
|
||||
$label = "{$domain} Query Response";
|
||||
}
|
||||
if ($key === 'thanks') {
|
||||
$label = "{$domain} Thanks Reaching";
|
||||
}
|
||||
if ($key === 'approve') {
|
||||
$label = "{$domain} Approved Temp.";
|
||||
}
|
||||
if ($key === 'decline') {
|
||||
$label = "{$domain} Declined Temp.";
|
||||
}
|
||||
}
|
||||
|
||||
$index[] = [
|
||||
'key' => $key,
|
||||
'label' => $label,
|
||||
];
|
||||
}
|
||||
|
||||
return $index;
|
||||
}
|
||||
|
||||
107
htdocs/app/mail/templates/query-template.php
Normal file
107
htdocs/app/mail/templates/query-template.php
Normal file
@@ -0,0 +1,107 @@
|
||||
<?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 isn’t 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;">
|
||||
We’ve 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>
|
||||
© {$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,
|
||||
];
|
||||
103
htdocs/app/mail/templates/thanks-template.php
Normal file
103
htdocs/app/mail/templates/thanks-template.php
Normal file
@@ -0,0 +1,103 @@
|
||||
<?php
|
||||
|
||||
$email = $ctx['email'] ?? '';
|
||||
$username = $ctx['username'] ?? '';
|
||||
$domain = $ctx['domain'] ?? '';
|
||||
$company = $ctx['company'] ?? '';
|
||||
$github = $ctx['github'] ?? '';
|
||||
$website = $ctx['website'] ?? '';
|
||||
$yearText = $ctx['yearText'] ?? '';
|
||||
|
||||
$subject = "{$domain} - Thanks For Reaching Out";
|
||||
|
||||
$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;">
|
||||
Thanks For Reaching Out
|
||||
</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> has received the query and our team has started reviewing the details you’ve shared.
|
||||
We're pleased to thank you for spending your precious time with <strong style="color:#0f172a;">{$domain}</strong>
|
||||
. i18n support isn’t available in all regions yet, so we’re sorry if you experienced any issues.
|
||||
</p>
|
||||
<p style="font-size:16px;line-height:22px;color:#475569;margin:0 0 16px 0;font-family:'Lexend Deca', -apple-system;">
|
||||
We’ll review your recommendation and let you know whether we can use it or not.
|
||||
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 by the email address:
|
||||
<a href="mailto:{$email}" style="color:#0f172a;font-family:'Lexend Deca', -apple-system;">{$email}</a>.
|
||||
</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, kidnly ignore this email.
|
||||
However, if you have any new quaries, 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>
|
||||
© {$yearText} {$company}. All rights reserved.
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
HTML;
|
||||
|
||||
return [
|
||||
'label' => "{$domain} Thanks Reaching",
|
||||
'subject' => $subject,
|
||||
'body' => $body,
|
||||
];
|
||||
Reference in New Issue
Block a user