Reply to Line feeds with MIME-Version: 1.0\r\nContent-Type:text/html; charset=iso-8859-1\r\n

Your name:

Reply:


Posted by bobkaku on 03/14/06 08:37

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.

Thanks in advance.

[Back to original 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

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