For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > February 2005 > Mail not sent problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Mail not sent problem
Kamyk

2005-02-13, 3:57 pm

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


Manuel Lemos

2005-02-14, 3:57 am

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com