tllewellyn Posted April 7, 2007 Share Posted April 7, 2007 Hello everyone, I hope you can help me out here. I'm using a form on an administrator's site to send email to a long list of people whose email addresses are obtained from a membership database. I've written a very simple script, using $_POST data and the mail() function, to send out the message. The problem I'm having is that when I receive the test email messages, the line breaks entered into the textarea are not showing in the email. For example, if I were to write: Test Test Test The resulting email would appear as: Test Test Test Can anyone provide some insight into how to have post information collected from a text area can maintain it's original formatting in the resulting emails? Thanks. Trev Link to comment https://forums.phpfreaks.com/topic/45968-email-form-help/ Share on other sites More sharing options...
The Little Guy Posted April 7, 2007 Share Posted April 7, 2007 use http://php.net/nl2br Link to comment https://forums.phpfreaks.com/topic/45968-email-form-help/#findComment-223367 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.