jest gdzieś na początku
$to=$zmienna; $subject ="SUBJECT"; $message ="<STYLE type='text/css'>th.title{color:white;background-color:red;font-size:40px} td{width:320;font-family:sans-serif;font-size:14px;font-weight:bold} td.description{color:black}</STYLE>"; $message .="<table border=0 cellpadding=0 cellspacing=1 width='100%'><tr><th class='title'>HEADER</th></tr></table>"; $message .="<div class='description'><p>TEXT</p><p>TEXT:</p></div>"; $message .="<table border=0 cellpadding=7 cellspacing=1 width='100%'><tr><td>Message date / time:</td><td>".date('d-m-Y / H:i')."</td></tr>"; $message .="<tr><td>Service:</td><td><font color=red>$result[category] -> $result[service]</font></td></tr>"; $message .="<tr><td>Status:</td><td><font color=red>DETECTED AND OPEN</font></td></tr>"; $message .="<tr><td>Problem description:</td><td><font color=red>".nl2br($_POST[problem_description])."</font></td></tr>"; $message .="<tr><td>Main impacted applications & services:</td><td><font color=red>".nl2br($_POST[main_impacted])."</font></td></tr>"; $message .="<tr><td>Problem start date / time:</td><td>".date('d-m-Y / H:i',$problem_start_date_time)."</td></tr></table>"; $message .="<div class='description'><p>TEXT</p><p>TEXT</p><p>TEXT</p><p>TEXT</p> <p> -------------------------------------------------------------------------------------<br/> <b>FOOTER</b><br/> -------------------------------------------------------------------------------------<br/> <i>This is an automatic email. Please, do not reply.</i></p></div>"; $headers ="MIME-Version: 1.0"."\n"; $headers .="Content-type: text/html; charset=iso-8859-2"."\n"; $headers .="Content-Transfer-Encoding: 8bit"."\n"; $headers .="From: admin@domain.com"."\n";
Czy w wiadomościach moze byc CSS czy lepiej wszystko html zastąpić ?
Pozdrawiam