phppaper Posted June 30, 2010 Share Posted June 30, 2010 I use mail() to build a mail system, the email contents from a textarea which able user to bold, underline or do other font editing. But through the mail(), the email content received did not edit the fonts, instead it shows up all those HTML tags, how can I remove the html tags show up in the email and still have the font effect?, example of a fail email: <p> testing</p> <p> </p> <p> <strong><u>test</u></strong></p> Link to comment https://forums.phpfreaks.com/topic/206254-mail-with-textarea-needs-to-remove-html-tags/ Share on other sites More sharing options...
travo1992 Posted June 30, 2010 Share Posted June 30, 2010 You need to send as a HTML email, rather than a text one. Im not sure how to do this exactly, but most mail classes (swiftmail, phpmailer, etc) have the option. Link to comment https://forums.phpfreaks.com/topic/206254-mail-with-textarea-needs-to-remove-html-tags/#findComment-1079034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.