Hi,
I am trying to send an simple html email using php. I use the code below and I receive everything fine.
<?php
$phone = $_GET['subject'];
$body = $_GET['message'];
$name = $_GET['name'];
$email = $_GET['email'];
$subj = "MladenPetkov.com";
$zoza = "Mladen's website";
$thanks = "Thank you for visitting my website. Your message has been received.";
$web="website";
$msg = "<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $name" . "\r\n";
$headers .= "Reply-To: $email" . "\r\n";
mail("contact@mladenpetkov.com", $subj, $msg, $headers);
mail($email, $zoza, $thanks,
"From: Mladen" . "\r\n"
."Reply-To: contact@mladenpetkov.com" . "\r\n"
."X-Mailer: PHP/" . phpversion());
mail("13863833033@tmomail.net", $name, $body);
?>
Then I try to change the width and size of the table in my message html code using dreamweaver, so my new code becomes like that:
<?php
$phone = $_GET['subject'];
$body = $_GET['message'];
$name = $_GET['name'];
$email = $_GET['email'];
$subj = "MladenPetkov.com";
$zoza = "Mladen's website";
$thanks = "Thank you for visitting my website. Your message has been received.";
$web="website";
$msg = "<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table width="360">
<tr>
<th width="102">Person</th><th width="84">Day</th><th width="103">Month</th><th width="51">Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</body>
</html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $name" . "\r\n";
$headers .= "Reply-To: $email" . "\r\n";
mail("contact@mladenpetkov.com", $subj, $msg, $headers);
mail($email, $zoza, $thanks,
"From: Mladen" . "\r\n"
."Reply-To: contact@mladenpetkov.com" . "\r\n"
."X-Mailer: PHP/" . phpversion());
mail("13863833033@tmomail.net", $name, $body);
?>
The massege is not sent any more. I do not get the email, not even a blank one. I experimented a bit with the code and it appears that the problem happens when I change the size of the table cells. What am I doing wrong?