confused and dazed Posted February 9, 2012 Share Posted February 9, 2012 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 More sharing options...
Ingolme Posted February 9, 2012 Share Posted February 9, 2012 Are you sending a Content-Type header with "text/html" as the value? Link to comment Share on other sites More sharing options...
justsomeguy Posted February 9, 2012 Share Posted February 9, 2012 You need to use the content-type header to specify that you are sending an HTML email. http://www.google.com/search?client=opera&rls=en&q=php+html+email&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest Link to comment Share on other sites More sharing options...
confused and dazed Posted February 9, 2012 Author Share Posted February 9, 2012 Will do. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.