You are here: Re: Line feeds with MIME-Version: 1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\n « PHP Programming Language « IT news, forums, messages
Re: Line feeds with MIME-Version: 1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\n

Posted by Tim Roberts on 11/13/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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация