Hi all,
I have a contact page where people can email me by filling out a form, including a large text area which contains the actual message. This page is contact.php
When the user submits, the form action takes them to contact_confirm.php which has a thankyou message and includes a simple script called gen_email.php.
gen_email.php simply populates variables with the form elements from contact.php and sends them via the mail() function.
When I get the email, all is fine, except all carriage returns the user entered in the message text area are ommited, so the message just appears as a continuous paragraph. It also has trouble with some characters like ', making them appear as /'.
Is there any way of fixing this before the mail is sent?
Thanks in advance
I have a contact page where people can email me by filling out a form, including a large text area which contains the actual message. This page is contact.php
When the user submits, the form action takes them to contact_confirm.php which has a thankyou message and includes a simple script called gen_email.php.
gen_email.php simply populates variables with the form elements from contact.php and sends them via the mail() function.
When I get the email, all is fine, except all carriage returns the user entered in the message text area are ommited, so the message just appears as a continuous paragraph. It also has trouble with some characters like ', making them appear as /'.
Is there any way of fixing this before the mail is sent?
Thanks in advance