|
Posted by Jerry Stuckle on 04/14/06 16:08
chris wrote:
> My code
> <?php
> $name = "freddie";
>
> $message.="Hi Joe,\n";
> $message.="\t $name has Filled out the form on the Website,\n";
> $message.="The information from the form is listed below:\n";
> $message.="more info\n";
> $message.="more info\n";
>
> mail("email address", "subject",$message,"FROM:email address");
> ?>
>
> when this is run the email recieved is formatted :
> Hi Joe,
> freddie has Filled out the form on the Website, The information from
> the form is listed below:
> more info
> more info
>
>
>
> i would expect it to be formatted :
>
> Hi Joe,
> freddie has Filled out the form on the Website,
> The information from the form is listed below:
> more info
> more info
>
>
>
> Does anyone have any idea why this happens ???
>
>
> --
> ¼á
Chris,
Hmmm, I haven't seen this problem before, although I have used mail() a fair amount.
Some thoughts - first of all, what happens if you change the \t to a couple of
spaces? Does that change things?
Also, what does the message's source look like? Is it possible your mail reader
is reformatting and you don't know it?
Finally - did you copy/paste the code, or did you retype it? If the latter, did
you accidentally correct your "problem" when retyping? :-)
But no - you do NOT want to insert html code into your message - especially the
header.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|