Jump to content

Sending HTML tables in a PHP mail script


confused and dazed

Recommended Posts

Hello internet.I am on the home stretch... One last piece to the puzzle.I am trying to send an html table in an e-mail from a php script and it is literally showing my code and not the table.Here is the code - what you see in the e-mail is exactly this code minus the $message='(...)'; $message = '<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>';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...