Having a poblem with the mail() function

From: Date: Mon, 21 Jan 2002 15:40:02 +0000
Subject: Having a poblem with the mail() function
Groups: php.general 
Request: Send a blank email to php-general+get-81373@lists.php.net to get a copy of this message
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? Thanks David $address = "david@atom.is"; $subject = "Test"; $body = "test"; if(mail($address, $subject, $body)) { echo("Success"); } else { echo("Didn't work"); } <http://www.atom.is/> ------------------------ Davíð Örn Jóhannssson Vefforritari ------------------------ Atómstöðin hf. Garðastræti 37 101 Reykjavík ------------------------ sími: 595-3643 fax: 595-3649 <mailto:david@atom.is> david@atom.is <http://www.atom.is/> http://www.atom.is ------------------------

« previous php.general (#81373) next »