I created a form for users to key in recipient, subject name, and message to send mail via phpmailer. the problem i'm facing is with the textarea in my form.
I typed this into the textarea:
Hi john,
how's your day?
regards,
your best friend
but right now, this is showing in the email:
Hi john, how's your day? regards, your best friend
any ideas on how to format it to how the user enters in the text area? my current script is just
$body= $_POST["msg"];
i read that i should use nl2br but isnt that for output? Thanks in advance