Hallo,
ich habe auf meiner Webseite einen Newsletter eingebaut und wollte diesen jetzt natürlich auch für den Empfänger ein bisschen grafisch gestalten.
Das Template das verwendet wird ist mail_default.
Also wollte ich einfach die Datei mail_default.tpl umbauen und wieder abspeichern, aber scheint doch nicht so einfach.
Das ist meine jetztige Datei:
Code:
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2//EN\">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->charset; ?>">
<meta name="Generator" content="TYPOlight Open Source CMS">
<title><?php echo $this->title; ?></title>
<?php echo $this->css; ?>
</head>
<body>
<?php echo $this->body; ?>
</body>
</html>
und so sollte der Newsletter einmal aussehen:
Code:
<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 3.2//EN\">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $this->charset; ?>">
<meta name="Generator" content="TYPOlight Open Source CMS">
<title><?php echo $this->title; ?></title>
<style type="text/css">
#layout{
margin-left:auto;
margin-right:auto;
width:600px;
background-color:#600f1a;
background-image:url(newsletter/bg.jpg);
background-position:left bottom;
background-repeat:no-repeat;
font-size:11px; color:#000;
font-family: Arial, Helvetica, sans-serif;
}
#header{
background-image:url(newsletter/header.jpg);
background-position:left top;
background-repeat:no-repeat;
width:600px;
height:417px;
padding-top:366px;
font-size:18px!important;
color:#600f1a;
padding-left:37px;
font-weight:bold;
font-family:Georgia, "Times New Roman", Times, serif;
font-style:italic;
w\idth:563px;
he\ight:51px;
}
#content{
margin-left:27px;
width:546px;
min-height:300px;
height:auto!important;
height:300px;
padding:10px;
w\idth:526px;
min-he\ight:280px;
he\ight:auto!important;
he\ight:280px;
background-color:#d5bdb9;
margin-bottom:20px;
}
h1{
font-size:18px!important;
color:#600f1a;
padding:0;
margin:0;
font-weight:bold;
font-family:Georgia, "Times New Roman", Times, serif;
font-style:italic;
}
/* CLEARFIX */
.clearfix:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */
</style>
<!--[if lte IE 6]>
<style type="text/css">
#content_rallye{
filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='newsletter/bg_weiss.png', sizingMethod='crop');
background:none;
}
</style>
<![endif]-->
</head>
<body>
<div id="layout" class="clearfix">
<div id="header">HIER TITEL DER NEWSLETTER</div>
<div id="content">HIER INHALT DER NEWSLETTER</div>
</div>
</body>
</html>
Auch wenn ich im div-content <?php echo $this->body; ?> einsetzte bekomme ich eine weisse E-Mail. Nur die Anhänge werden korrket mitgesendet.
Und vor allem wie gebe ich den Titel getrennt vom Inhalt aus?
Kann mir da bitte jemand zur Hand gehen?
Danke
Roland
Lesezeichen