|
Posted by Tim Roberts on 11/18/89 11:42
"bobkaku" <bobkaku@yahoo.com> wrote:
>
>I added "MIME-Version: 1.0\r\nContent-Type:text/html;
>charset=iso-8859-1\r\n" as one of the parameters in the mail( )
>function to replace the "Nobody" with a real From: email. That worked.
>
>But if I attempt to add any other terms, such as the sender's name and
>location, the MIME parameter above seems to ignore the "\n" line feeds
>and put the these other terms ahead of the mail message.
>
>Here's my code:
>
>mail("$toaddress", "$subject", "$mailcontent", "MIME-Version:
>1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\nFrom: ".
>$youremail
> . "\r\n" . $yourname . "\r\n");
>
>The value for $yourname appears ahead of the message [$mailcontent] on
>the same line. What I would like it to do is display the message, go
>to a new line, then display $yourname.
Well, then, you need to append $yourname to $mailcontent, and not to the
headers. What you have done makes $yourname the first line of the message,
since it's coming directly after the headers.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
[Back to original message]
|