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
Text Formatting in mail() Function....
Moderator: General Moderators
if you print the value of $_POST['message'] how does it look?do you want it to be a html-mail?
Code: Select all
<?php echo '<pre>', $_POST['message'], '</pre>';