This is a discussion on Mail not sent problem within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello all! I have tried to call this functions, but it doesn`t work. Could you tell me where the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello all!
I have tried to call this functions, but it doesn`t work. Could you tell me where the mistake is. I have got the message: "Could not mail" and email is not sent. $parameters = "From: website@{$_SERVER['SERVER_NAME']}\r\n" . "X-Mailer: PHP/" . phpversion(); mail("marcinzmyslowski@poczta.onet.pl","cos","tam" ,$parameters) or die ("Could not mail"); Regards Marcin |
|
|||
|
Hello,
on 02/13/2005 04:52 PM Kamyk said the following: > Hello all! > > I have tried to call this functions, but it doesn`t work. Could you tell me > where the mistake is. > I have got the message: "Could not mail" and email is not sent. > > $parameters = "From: website@{$_SERVER['SERVER_NAME']}\r\n" . "X-Mailer: > PHP/" . phpversion(); > mail("marcinzmyslowski@poczta.onet.pl","cos","tam" ,$parameters) or die > ("Could not mail"); If you enable error reporting, PHP will output the error that made the mail function fail. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html |