Wednesday, May 18, 2016

How to show line break from textarea in php mail

Normally we just get the textarea message filed and put in our Email function, but when Email receive the textarea message filed show as continue without any New Line / line brack /
, so in this atrical i will describe you the simple code to get correct format for the textarea message filed.

PHP Function:  nl2br() 
full Function we use:  nl2br(htmlspecialchars()