Page 1 of 1

Text Formatting in mail() Function....

Posted: Wed May 28, 2003 1:47 pm
by pvolpe1
When ever I send an email using the mail() function, it sends but all the formatting (carriage returns, tabs, et al) are ignored!

Happens when sent from a variety of servers.

wen I place \ before 'special characters', it prints them!

I am assuming that either the mail() fucntion or the process of capturing my $_POST['message'] variable as a string causes special characters to be automatically escaped.

If I send HTML throug the the mail() function, I cannot guarentee the outcome, though it still sends, and there is HTML in the recieved message. Things like color just get skewed.

Any Ideas how I can at least get the carriage returns to work properly?

-pfv

Posted: Wed May 28, 2003 3:11 pm
by volka
if you print the value of $_POST['message'] how does it look?

Code: Select all

<?php echo '<pre>', $_POST['message'], '</pre>';
do you want it to be a html-mail?

Posted: Thu May 29, 2003 10:21 am
by liljester
does your server use magic quotes?