Reply to Re: mail-form php

Your name:

Reply:


Posted by Steve on 09/14/05 18:09

> $messub = "Subject: ".$subject."\n";
> $mesmsg .= "Message: ".$msg."\n";
> $mesname .= "Name: ".$name."\n";
> $mesemail .= "Email: ".$email."\n";

> mail('$to', $sub, $messub, $mesmsg, $mesname, $mesemail);

Please read the documentation for the mail() function
<http://www.php.net/manual/en/function.mail.php> and don't make up your
own protocol.

Specifically: $to does not need single quotes; the 3rd parameter is
supposed to be the message body, not the subject; the 4th parameter is
extra headers, not the message body; the 5th parameter is usually
unused; the extra headers MUST include a "From:" header; none of the
headers are called "Subject:", "Message:", "Name:" or "Email:".

Try: mail( $to, $sub, $msg, "From:$email" );

---
Steve

[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

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