updated mail
parent
4a1e34c6c7
commit
d4795cefd6
|
@ -26,6 +26,8 @@
|
||||||
<a target="_blank" href="{{CTA_Link}}"
|
<a target="_blank" href="{{CTA_Link}}"
|
||||||
style="display: inline-block; padding: 10px 15px; background-color: #4d61d6; color: #fff !important; text-decoration: none !important; border-radius: 5px; margin-top: 20px;"
|
style="display: inline-block; padding: 10px 15px; background-color: #4d61d6; color: #fff !important; text-decoration: none !important; border-radius: 5px; margin-top: 20px;"
|
||||||
rel="noopener">{{ctaButton}}</a>
|
rel="noopener">{{ctaButton}}</a>
|
||||||
|
<img src="https://jannex.de/unsubscribed/public/shinnex-generator-inputs.png" alt=""
|
||||||
|
style="width: 100%; max-height: 100%; border-radius: 5px; margin: 20px auto;">
|
||||||
<div style="margin: 20px 0; border-bottom: 1px solid #ddd"></div>
|
<div style="margin: 20px 0; border-bottom: 1px solid #ddd"></div>
|
||||||
<p style="color: #333; margin: 0 0 15px">{{text_4}}</p>
|
<p style="color: #333; margin: 0 0 15px">{{text_4}}</p>
|
||||||
<p style="color: #333; margin: 0 0 15px">{{text_5}}</p>
|
<p style="color: #333; margin: 0 0 15px">{{text_5}}</p>
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body style="font-family: 'Arial', sans-serif; background-color: #f4f4f4; margin: 0; padding: 0;">
|
||||||
|
|
||||||
|
<table
|
||||||
|
style="width: 100%; max-width: 600px; margin: 20px auto; background-color: #ffffff; border-radius: 8px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: hidden; font-size: 0px;"
|
||||||
|
cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%"> <img src="{{topImageSrc}}" alt=""
|
||||||
|
style="width: 100%; height: auto; border-top-left-radius: 8px; border-top-right-radius: 8px;">
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="width: 100%; padding: 20px 20px 0 20px; font-size: 16px">
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{salutation}}</p>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_1}}</p>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_2}}</p>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_3}}</p>
|
||||||
|
<a target="_blank" href="{{CTA_Link}}"
|
||||||
|
style="display: inline-block; padding: 10px 15px; background-color: #4d61d6; color: #fff !important; text-decoration: none !important; border-radius: 5px; margin-top: 20px;"
|
||||||
|
rel="noopener">{{ctaButton}}</a>
|
||||||
|
<div style="margin: 20px 0; border-bottom: 1px solid #ddd"></div>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_4}}</p>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_5}}</p>
|
||||||
|
<p style="color: #333; margin: 0 0 15px">{{text_6}}</p>
|
||||||
|
<p style="color: #555; margin: 0"> {{bestRegards}}</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{{footer}}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -85,6 +85,7 @@ def show_third_voucher(show):
|
||||||
with open("backPage.html", "w") as file:
|
with open("backPage.html", "w") as file:
|
||||||
file.write(html)
|
file.write(html)
|
||||||
|
|
||||||
|
|
||||||
def CheckIfCrmCustomerExists():
|
def CheckIfCrmCustomerExists():
|
||||||
print(f"Checking if customer exists: {customerEmail}")
|
print(f"Checking if customer exists: {customerEmail}")
|
||||||
|
|
||||||
|
@ -224,7 +225,7 @@ def ReplaceHtmlVariables():
|
||||||
startTag = "<span>"
|
startTag = "<span>"
|
||||||
endTag = "</span>"
|
endTag = "</span>"
|
||||||
|
|
||||||
# add as text before last paragraph
|
# add additional info text before last paragraph
|
||||||
if (additionalInfo != "Keine" and i == len(data["texts"][randomTextIndex]["paragraphs"]) - 1):
|
if (additionalInfo != "Keine" and i == len(data["texts"][randomTextIndex]["paragraphs"]) - 1):
|
||||||
htmlParagraphs += f"{startTag}{data['additionalInfo'][additionalInfo]}{endTag}"
|
htmlParagraphs += f"{startTag}{data['additionalInfo'][additionalInfo]}{endTag}"
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
|
@ -47,6 +47,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"additionalInfo": {
|
"additionalInfo": {
|
||||||
"Fehldrucke beigelegt": "ⓘ Wir haben bemerkt, dass der erste Druck des Schildes nicht unseren Qualitätsstandards entsprach, weshalb wir es für Dich erneut gedruckt haben. Anstatt den ersten Druck zu entsorgen, legen wir ihn als kostenlose Zugabe bei. Vielleicht findest Du eine Verwendung dafür."
|
"Fehldrucke beigelegt": "ⓘ Wir haben bemerkt, dass der erste Druck des Schildes nicht unseren Qualitätsstandards entsprach, weshalb wir es für Dich erneut gedruckt haben. Anstatt den ersten Druck zu entsorgen, legen wir ihn als kostenlose Zugabe bei. Vielleicht findest Du eine Verwendung dafür <img style='height: 20px; vertical-align: -4px' src='../../groupsData/shx-order-voucher-codes/feeling.png' />"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue