Ich hab mir ein eigenes Template für HTML-Mails erstellt und dieses verwendet.
Das Template heißt "mail_….html5" und sieht so aus:
HTML-Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?= $this->charset ?>">
<meta name="viewport" content="width=device-width">
<meta name="Generator" content="Contao Open Source CMS">
<title><?= $this->title ?></title>
<link rel="stylesheet" href="files/css/foundation-mail.css">
<?= $this->css ?>
</head>
<body>
<!-- <style> -->
<table class="body" data-made-with-foundation="">
<tr>
<td class="center" align="center" valign="top">
<center data-parsed="">
<table class="container header text-center">
<tbody>
<tr>
<td>
<table class="row collapse">
<tbody>
<tr>
<th class="small-12 large-12 columns first last">
<table>
<tr>
<th style="background-color: #1682c0"> <img style="padding: 10px" src="files/images/logo-white-email.png" alt=""> </th>
<th class="expander"></th>
</tr>
</table>
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<table class="container body-drip text-center">
<tbody>
<tr>
<td> <br>
<table class="row">
<tbody>
<tr>
<th class="small-12 large-12 columns first last">
<table>
<tr>
<th>
<?= $this->body ?>
</th>
<th class="expander"></th>
</tr>
</table>
</th>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</center>
</td>
</tr>
</table>
</body>
</html>
Das CSS war entsprechend von Foundation…
Lesezeichen