RE: [PHP] Having a poblem with the mail() function

From: Date: Mon, 21 Jan 2002 15:50:51 +0000
Subject: RE: [PHP] Having a poblem with the mail() function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-81377@lists.php.net to get a copy of this message
It simply prints out "Didn't work" or fails the if statement, no errormsg or nothing, the page executes fine but the mail function is the enly thing that fails to execute. -----Original Message----- From: Nick Wilson [mailto:nick@explodingnet.com] Sent: 21. janúar 2002 15:45 To: php-general@lists.php.net Subject: Re: [PHP] Having a poblem with the mail() function -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * On 21-01-02 at 16:41 * David Orn Johannsson said.... > The thing is when i run this script which seems allright to me atleast, > it always fails, Can anyone even guess what the problem might be? The > webserver is running a php 4.1, SunOS 5.7, Apache, and sendmail which is > required for the mail() function if I'm right? > > $address = "david@atom.is"; > $subject = "Test"; > $body = "test"; > > if(mail($address, $subject, $body)) { > echo("Success"); > } else { > echo(y"Didn't work"); > } So what happens when you run it? Is it printing "Didn't work" or giving some other error? - -- Nick Wilson Tel: +45 3325 0688 Fax: +45 3325 0677 Web: www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8TDdgHpvrrTa6L5oRAjkZAJ4qVYZruzwFGJ0rsoqsd4QuICAdRACff9Ii cMDV6kmrE0xDXQdsCC/3nHM= =x2a8 -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#81377) next »