-----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 = "[EMAIL PROTECTED]"; > $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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]