nwrfoto Posted March 5, 2010 Share Posted March 5, 2010 I have a simple mail script which contains text from a database which is stored using htmlentities() i.e. the letter á is stored as á so i need to send this text in an email and have it formatted correctly. i've tried various combinations of text and html mails with no luck. can anyone help? Quote Link to comment Share on other sites More sharing options...
cags Posted March 5, 2010 Share Posted March 5, 2010 You could either make sure you are sending the e-mail as HTML, by adding the correct headers, something like.. $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=utf8\r\n"; Or you could try using html_entity_decode. Quote Link to comment Share on other sites More sharing options...
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.