Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Refactor unsubscribe email template for improved layout and clarity

lotk038d70488abe
diff --git a/core/template/default_unsubscribe_email/unsubscribe_email.html b/core/template/default_unsubscribe_email/unsubscribe_email.html
index 19ca7052..ee4fc9c4 100644
--- a/core/template/default_unsubscribe_email/unsubscribe_email.html
+++ b/core/template/default_unsubscribe_email/unsubscribe_email.html
@@ -5,6 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>You're Unsubscribed</title>
<style>
+ p {
+ margin: 0;
+ }
body {
background: #f5f5f5;
margin: 0;
@@ -36,19 +39,20 @@
box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.content {
- padding: 30px 40px;
+ padding: 32px 40px;
text-align: center;
}
.content h2 {
- margin: 0 0 16px 0;
+ margin-top: 0;
+ margin-bottom: 32px;
color: #1f2937;
font-size: 24px;
font-weight: 600;
}
.content p {
- margin: 0 0 24px 0;
+ margin-top: 12px;
color: #6b7280;
- font-size: 16px;
+ font-size: 14px;
line-height: 1.5;
}
.button {
@@ -61,7 +65,6 @@
font-size: 16px;
font-weight: 500;
transition: background-color 0.2s ease;
- margin: 20px 0;
}
.button:hover {
background: #2563eb;
@@ -81,55 +84,38 @@
.footer a:hover {
color: #6b7280;
}
- .sad-face {
- font-size: 24px;
- margin-bottom: 10px;
- }
- .highlight {
- background: #fef3f2;
- border-left: 4px solid #dc2626;
- padding: 16px;
- margin: 20px 0;
- border-radius: 4px;
- }
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="unsubscribe-icon">
- <svg width="40" height="40" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
- <path d="M3 6L5 4M21 6L19 4M5 4L12 11L19 4M5 4H19M5 20H19M5 20V4M19 20V4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
- <path d="M9 9L15 15M15 9L9 15" stroke="white" stroke-width="2" stroke-linecap="round"/>
+ <svg t="1757406170819" viewBox="0 0 1092 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8066" width="40" height="40">
+ <path
+ d="M819.2 477.867c-150.187 0-273.067 122.88-273.067 273.066S669.013 1024 819.2 1024s273.067-122.88 273.067-273.067S969.387 477.867 819.2 477.867zM614.4 750.933c0-40.96 13.653-85.333 37.547-119.466l286.72 286.72c-92.16 64.853-218.454 44.373-286.72-47.787-23.894-34.133-37.547-75.093-37.547-119.467zM986.453 870.4l-286.72-286.72c92.16-64.853 218.454-44.373 286.72 47.787 51.2 71.68 51.2 167.253 0 238.933z"
+ fill="#ffffff"
+ p-id="8067"
+ ></path>
+ <path
+ d="M477.867 614.4h-409.6v-512l477.866 314.027L1024 98.987V409.6h68.267V0H0v682.667h477.867V614.4z m68.266-279.893L143.36 68.267h805.547l-402.774 266.24z"
+ fill="#ffffff"
+ p-id="8068"
+ ></path>
</svg>
</div>
</div>
<div class="content">
- <div class="sad-face">😔</div>
<h2>You're Unsubscribed</h2>
- <p>We're sorry to see you go! You have been successfully unsubscribed from our mailing list.</p>
-
- <div class="highlight">
- <p><strong>What this means:</strong></p>
- <p style="margin: 0;">You will no longer receive emails from us. If you change your mind, you can always resubscribe using the button below.</p>
- </div>
-
- <p>We respect your decision and appreciate the time you spent with us. If you have any feedback on how we can improve, we'd love to hear from you.</p>
<a href="{{ ResubscribeLink . }}" class="button">Resubscribe</a>
- <p style="font-size: 14px; color: #9ca3af; margin-top: 30px;">
- If you unsubscribed by mistake, click the resubscribe button above to rejoin our mailing list.
- </p>
+ <p>If you unsubscribed by mistake, click the resubscribe button above to rejoin our mailing list.</p>
</div>
<div class="footer">
<div>
<span>Powered by </span>
<a href="https://www.billionmail.com/" target="_blank">BillionMail</a>
</div>
- <div style="margin-top: 10px;">
- <p>This is an automated message. Please do not reply to this email.</p>
- </div>
</div>
</div>
</body>