Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messageHello,
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 m
e
> 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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.