Jump to content

[SOLVED] HTML tables don't show up in e-mail message


miinet

Recommended Posts

I'm trying to figure out how to output my string, $message. I want the body of the e-mail to show a table with data. Right now it just shows First Name. Anyone know what I need to do to get it work right?

 

<?php

$to = "[email protected]";

$subject = "Request";

$headers = 'MIME-Version: 1.0' . "rn";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn";

 

 

$message =

'<html>

<head>

<title>Confirmation</title>

</head>

<body>

<table cellspacing="7">

   <tr>

      <td>First Name:</td>

   </tr>

   <tr>

      <td>Last Name:</td>

   </tr>

</table>

</body>

</html>

';

 

//Send email

mail($to,$subject,$message,$headers);

 

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.