confused and dazed 9 Posted February 9, 2012 Report 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>'; Quote Link to post Share on other sites
Ingolme 1,027 Posted February 9, 2012 Report Share Posted February 9, 2012 Are you sending a Content-Type header with "text/html" as the value? Quote Link to post Share on other sites
justsomeguy 1,135 Posted February 9, 2012 Report 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 Quote Link to post Share on other sites
confused and dazed 9 Posted February 9, 2012 Author Report Share Posted February 9, 2012 Will do. Thanks. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.