html email virker ikke rigtig.
hey.jeg har lavet en html email der ser så ledes ud..
<?php
ob_start();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Afhentning</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="web-style.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="afhentning.php" method="post" name="beskeden" id="beskeden">
<table width="598" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="16" colspan="7" valign="middle" class="overskrift">Afhentning af effekter </td>
<td width="9"></td>
</tr>
<tr>
<td height="52" colspan="8"><br>
Har du effekter som du mener at andre kan få glæde af, kan du skrive til os nedenfor.<br>
Vi kontakter dig torsdag aften efter kl. 18.00. Vort besøg finder sted først kommende <br>
lørdag fra kl. 09.00. <br>
<br>
<span class="style2"><em>OBS. Vi kører kun ud inden for Ølstykke kommune. <br>
Endvidere afhenter og modtager vi ikke hårde hvidevarer, klaver & el-ogler.<br>
Vi holder lukket Påske - Kr. Himmelfartsdag - Pinse - Jul - Nytår </em></span></td>
</tr>
<tr>
<td height="15" colspan="8"> </td>
</tr>
<tr>
<td width="89" height="22" valign="middle" class="normaltext">Navn:</td>
<td width="228" valign="top">
<input name="navn" type="text" class="normaltext" id="navn" size="30"> </td>
<td width="49" valign="top"> </td>
<td colspan="5" rowspan="4" valign="top"> </td>
</tr>
<tr>
<td height="22" valign="middle" class="normaltext">Adresse: </td>
<td valign="top"><input name="adresse" type="text" class="normaltext" id="adresse" size="30"></td>
<td valign="top"> </td>
</tr>
<tr>
<td height="22" valign="middle" class="normaltext">Telefon nr. </td>
<td valign="top"><input name="tlf" type="text" class="normaltext" id="tlf" size="30" maxlength="8"></td>
<td valign="top"> </td>
</tr>
<tr>
<td height="19" colspan="3" valign="middle" class="normaltext"> </td>
</tr>
<tr>
<td height="15" colspan="8" valign="top" class="normaltext">Skriv de effekter som du ønsker afhentet. Eks. Bord, sofa, legetøj, tv, osv.</td>
</tr>
<tr>
<td colspan="4" rowspan="2" valign="top"><textarea name="effekter" cols="60" rows="5" class="normaltext" id="effekter"></textarea> </td><td height="62" colspan="4"> </td>
</tr>
<tr>
<td colspan="4"><input name="submit" value="submit" type="image" class="border" src="images/send.gif" alt="Send besked" width="45" height="15"></td>
</tr>
<tr>
<td height="1"></td>
<td colspan="2"></td>
<td width="55"></td>
<td width="108"></td>
<td width="56"></td>
<td width="3"></td>
<td></td>
</tr>
</table>
</FORM>
<?PHP
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$dato = date("H:i");
$subject = "Genbrugsgruppen.dk";
$headers .= "From: Genbrugsgruppen.dk <afhentning@Genbrugsgruppen.dk>\n";
$headers .= "Reply-To: <afhentning@Genbrugsgruppen.dk>\n";
$headers .= "X-Sender: <afhentning@Genbrugsgruppen.dk>\n";
$headers .= "X-Mailer: PHP4\n"; //mailer
$headers .= "X-Priority: 3\n"; //1 UrgentMessage, 3 Normal
$headers .= "Return-Path: <afhentning@Genbrugsgruppen.dk>\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\n";
$headers .= "MIME-Version: 1.0\n";
$message = '<html><head></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><table width=\"990\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
<tr>
<td height=\"60\" colspan=\"15\" valign=\"top\"><div align=\"center\"><span style=\"font-size: 36px; font-weight: bold; text-decoration: underline;\">Ølstykke Genbrugsgruppen - Indsamlingsbesked </span></div></td>
</tr>
<tr>
<td height=\"45\" colspan=\"2\" valign=\"bottom\" style=\"font-size: 30px;\">Navn:</td>
<td colspan=\"9\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\">' . $_POST[navn] . '</td>
<td colspan=\"2\" valign=\"bottom\" style=\"font-size: 30px;\">Dato:</td>
<td colspan=\"2\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\">' . $dato . '</td>
</tr>
<tr>
<td height=\"1\" colspan=\"15\"></td>
</tr>
<tr>
<td height=\"45\" colspan=\"3\" valign=\"bottom\" style=\"font-size: 30px;\">Adresse:</td>
<td colspan=\"12\" valign=\"top\" style=\"font-size: 25px; border-bottom: 2px dotted black;\">' . $_POST[adresse] . '</td>
</tr>
<tr>
<td height=\"1\" colspan=\"15\"></td>
</tr>
<tr>
<td width=\"243\" height=\"45\" valign=\"bottom\" style=\"font-size: 30px;\">Tlf:</td>
<td colspan=\"6\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\">' . $_POST[tlf] . '</td>
<td colspan=\"5\" valign=\"bottom\" style=\"font-size: 30px;\">Evt. Afhentningssted: </td>
<td colspan=\"3\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\"> </td>
</tr>
<tr>
<td height=\"1\" colspan=\"15\"></td>
</tr>
<tr>
<td height=\"34\" colspan=\"15\" valign=\"top\" style=\"font-size: 30px;\">Effekter:</td>
</tr>
<tr>
<td height=\"124\" colspan=\"15\" valign=\"top\" style=\"font-size: 25px; border-bottom: 2px dotted black;\">' . $tekst . '</td>
</tr>
<tr>
<td height=\"1\" colspan=\"15\"></td>
</tr>
<tr>
<td height=\"34\" colspan=\"15\" valign=\"top\" style=\"font-size: 30px;\">Bemærkninger:</td>
</tr>
<tr>
<td height=\"138\" colspan=\"15\" valign=\"top\" style=\"font-size: 25px; border-bottom: 2px dotted black;\"> </td>
</tr>
<tr>
<td height=\"1\" colspan=\"15\"></td>
</tr>
<tr>
<td height=\"45\" colspan=\"5\" valign=\"bottom\" style=\"font-size: 30px;\">Operation mærkning: </td>
<td colspan=\"10\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\"> </td>
</tr>
<tr>
<td height=\"45\" colspan=\"4\" valign=\"bottom\" style=\"font-size: 30px;\">Afhentnings dato: </td>
<td colspan=\"5\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\"> </td>
<td colspan=\"5\" valign=\"bottom\" style=\"font-size: 30px;\">Afhenter navn: </td>
<td width=\"366\" valign=\"bottom\" style=\"font-size: 25px; border-bottom: 2px dotted black;\"> </td>
</tr>
</table></body></html>';
mail("zyxep.net@gmail.com", $subject, $message, $headers);
header("Location: tak.htm");
}
?>
men når jeg sender en mail så virker den kun nogen gange :S
der kommer ikke nogen style="" ind på eller noget som helst.
HJÆLP!!!
