Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

Why does my email look this why in google?

Attached is a screen shot of the email that I'm sending out. As you can see, everything is displaced, yet when I run the code on my browser, it looks fine. The code is below:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Texaco Country Music Showdown</title>
<link rel="stylesheet" type="text/css"href="http://www.countryshowdown.com/email/style.css">
<MAP NAME="header_map">
<AREA
   HREF="http://www.countryshowdown.com/Texaco/index.php" ALT="Home" TITLE="Home"
   SHAPE=RECT COORDS="25,131,71,147">
   <AREA
   HREF="http://www.countryshowdown.com/Texaco/TVStations.php" ALT="TV Stations" TITLE="TV Stations"
   SHAPE=RECT COORDS="115,132,175,144">
    <AREA
   HREF="http://www.countryshowdown.com/Texaco/ContestLocations.php" ALT="Radio Stations" TITLE="Radio Stations"
   SHAPE=RECT COORDS="224,135,300,145">
    <AREA
   HREF="http://www.countryshowdown.com/Texaco/ContestantList.php" ALT="View Contestants" TITLE="View Contestants"
   SHAPE=RECT COORDS="367,131,462,147">
        <AREA
   HREF="http://www.countryshowdown.com/Texaco/Contact.php" target="_blank" ALT="Contact" TITLE="Contact"
   SHAPE=RECT COORDS="520,134,566,144">
      </map>
</head>

<body background="http://www.countryshowdown.com/images/BSPpreStephan_01.gif"  LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>

<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="center" valign="top">&nbsp;<BR>
&nbsp;<BR>&nbsp;<BR>
      <table height 0% width="600" align="center" cellpadding="0" cellspacing="0" border="0">
      <tr>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>
      <td bgcolor="white" valign="top">
      <IMG SRC="http://www.countryshowdown.com/images/email_header.jpg" width="600" border="0" USEMAP="#header_map">
      </td>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>
      </tr>
      <tr>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>

      <!- main content ->
      <td valign="top" bgcolor="white" align="center">
            <table cellspacing="0" cellpadding="0" valign="top" border="0">
            <td valign="top" align="center">
                  <table border="0" width="590" cellspacing="0" cellpadding="0" align="center">
                  <tr>
                  <td background="http://www.countryshowdown.com/images/spacer.gif" height="300" width="590" valign="top">
                  
                  <!- content ->
                  
                  &nbsp;<BR>&nbsp;<BR>Hello, $the_first_name !<P>To validate your email and to ensure that your votes count, click on the link below.";
$message .= "<P><A HREF=\"http://www.countryshowdown.com/Texaco/songwriting_voter_validation.php?email=$voter_email&chk=$the_digest\" target=\"_blank\">http://www.countryshowdown.com/Texaco/songwriting_voter_validation.php?email=$voter_email&chk=$the_digest</a><P>If you have any questions, you can contact your Showdown staff by clicking <A HREF=\"http://www.countryshowdown.com/Texaco/Contact.php\" target=\"_blank\">

                  </td>
                  </tr>
                  </table>
        </td>
            </tr>
            </table>

            <!- your copy ends here - >

      

            <!- end main content ->
      </td>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>
      </tr>
      <tr>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>
      <td height="70" background="http://www.countryshowdown.com/email/new_footer.jpg">
      &nbsp;<BR>
      </td>
      <td background="http://www.countryshowdown.com/images/PencilLine.jpg" width="2">&nbsp;<BR>
      </td>
      </tr>
      </table>
</td>
</tr>
<tr><td colspan="3" align="center">&nbsp;<BR>Special Promotions, Inc | 63 Music Square East | Nashville, TN 37203 | (p) 615.321.5130 | (w) <A HREF="http://www.countryshowdown.com" target="_blank">countryshowdown.com</a>&nbsp;<BR>&nbsp;<BR></td></tr>

</table>
</body>
</html>


What am I missing? Thoughts?


 User generated image
Avatar of Sandeep Kothari
Sandeep Kothari
Flag of India image

are you using text/html as content type when sending email ?
Avatar of Bruce Gust

ASKER

Yes - here are my headers:

$headers = 'MIME-Version: 1.0'. PHP_EOL;
$headers .= 'Content-type: text/html; charset=iso-8859-1'. PHP_EOL;
$headers .= 'FROM: contest@countryshowdown.com'. PHP_EOL;

The whole PHP code looks like this:

$subject_line = "voter validation";
$from_email = "contest@countryshowdown.com";
$the_first_name = stripslashes($_POST['voter_first_name']);

$headers = 'MIME-Version: 1.0'. PHP_EOL;
$headers .= 'Content-type: text/html; charset=iso-8859-1'. PHP_EOL;
$headers .= 'FROM: contest@countryshowdown.com'. PHP_EOL;
$to = $voter_email;
$subject = $subject_line;
$message .= file_get_contents('email_header.php');
$message .= "&nbsp;<BR>&nbsp;<BR>Hello, $the_first_name !<P>To validate your email and to ensure that your votes count, click on the link below.";
$message .= "<P><A HREF=\"http://www.countryshowdown.com/Texaco/songwriting_voter_validation.php?email=$voter_email&chk=$the_digest\" target=\"_blank\">http://www.countryshowdown.com/Texaco/songwriting_voter_validation.php?email=$voter_email&chk=$the_digest</a><P>If you have any questions, you can contact your Showdown staff by clicking <A HREF=\"http://www.countryshowdown.com/Texaco/Contact.php\" target=\"_blank\">here</a>.<P>Thanks!";
$message .= file_get_contents('email_footer.php');
mail($to, $subject , $message, $headers);
SOLUTION
Avatar of Sandeep Kothari
Sandeep Kothari
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Afterthought: I have had good success with http://www.constantcontact.com/index.jsp