I am trying to send email using mail() in php. I need the message to be formatted or at least allow line breaks.
$mail = mail(WEBMASTER_EMAIL, $subject, $message,
"From: ".$name." <".$email.">/r/n"
."Reply-To: ".$email."/r/n"
."X-Mailer: PHP/" . phpversion());
Do i need to provide “< br/>” tags in the $message or /r/n. Tried both but they came in as
or /r/n and not line breaks
Thanks
Prady
It’s \r\n, as in backslash not forward slash.
Also you can try it like this: