Commit c116dc72 authored by Tino Goratsch's avatar Tino Goratsch

laid the foundation for sending HTML emails by default and everywhere

parent 875a59c8
<!DOCTYPE html>
<html>
<head>
{extends file="asset:System/layout.email.tpl"}
{block EMAIL_HEAD}
<title>{$mail.title}</title>
<meta charset="{$mail.charset}">
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
</style>
</head>
{/block}
{block EMAIL_CONTENT_BEFORE}
<p style="text-align:center">
<a href="{$mail.url_web_view}">{lang t="newsletter|use_web_view"}</a>
</p>
{/block}
<body>
<a href="{$mail.url_web_view}">{lang t="newsletter|use_web_view"}</a>
{block EMAIL_CONTENT}
<h1>{$mail.title}</h1>
{$mail.body}
<hr>
{$mail.signature}
</body>
</html>
\ No newline at end of file
{/block}
......@@ -65,6 +65,6 @@
<item key="unsubscribe">Austragen</item>
<item key="unsubscribe_error">Beim Löschen des Newsletterkontos ist ein Fehler aufgetreten.</item>
<item key="unsubscribe_success">Das Newsletterkonto wurde erfolgreich gelöscht.</item>
<item key="use_web_view">Wird der Newsletter nicht korrekt dargestellt? Klicken um Ihn im Browser zu öffnen.</item>
<item key="use_web_view">Wird der Newsletter nicht korrekt dargestellt? Hier klicken um Ihn im Browser zu öffnen.</item>
</keys>
</language>
......@@ -59,12 +59,12 @@
<item key="subscribe_success">The newsletter account has been successfully created.</item>
<item key="subscribe_unsubscribe_the_newsletter">Subscribe/Unsubscribe the newsletter</item>
<item key="test_newsletter">Send Test newsletter</item>
<item key="test_newsletter_description">Will be send to the E-mail adress which is configured in the newsletter settings.</item>
<item key="test_newsletter_description">Will be send to the E-mail address which is configured in the newsletter settings.</item>
<item key="text">Text</item>
<item key="text_to_short">The text should not be empty.</item>
<item key="unsubscribe">Unsubscribe</item>
<item key="unsubscribe_error">While deleting the newsletter account an error has occurred.</item>
<item key="unsubscribe_success">The newsletter account has been successfully deleted.</item>
<item key="use_web_view">Having problems displaying this newsletter? Click to open it in your Browser.</item>
<item key="use_web_view">Having problems displaying this newsletter? Click here to open it in your Browser.</item>
</keys>
</language>
<html>
<head>
{block EMAIL_HEAD}{/block}
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name=”x-apple-disable-message-reformatting”>
{block EMAIL_STYLESHEET}
<style type="text/css">
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
.email-content-wrapper {
width: 600px;
margin: 0 auto;
}
</style>
{/block}
</head>
<body>
{block EMAIL_CONTENT_BEFORE}{/block}
<center>
<table class="email-content-wrapper">
<tr>
<td>
{block EMAIL_CONTENT}{/block}
</td>
</tr>
</table>
</center>
{block EMAIL_CONTENT_AFTER}{/block}
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment