Mail not sent problem

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-13-2005
Kamyk
 
Posts: n/a
Default Mail not sent problem

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


Reply With Quote
  #2 (permalink)  
Old 02-14-2005
Manuel Lemos
 
Posts: n/a
Default Re: Mail not sent problem

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:37 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0