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

From: Date: Mon, 21 Jan 2002 16:25:21 +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-81384@lists.php.net to get a copy of this message
Thanks alot I'll check into the php.ini Regards, David -----Original Message----- From: Nick Wilson [mailto:nick@explodingnet.com] Sent: 21. janúar 2002 16:06 To: 'PHP-General' Subject: Re: [PHP] Having a poblem with the mail() function -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 * On 21-01-02 at 16:54 * David Orn Johannsson said.... > > $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? > > 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. > > In that case I reckon you need to start scouring that php.ini and find the bit that gives the Sendmail path. As far as I remember php counts it a success when it delivers the instructions to Sendmail regardless of what SM does with it. So..... I don't think you're reaching SM and that's why it's failing. HTH. Nick Wilson Tel: +45 3325 0688 Fax: +45 3325 0677 Web: www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8TDxvHpvrrTa6L5oRAnRsAJ41oN9tO/N6U2wXA4J8F6CbQcSN0wCeLrbd f1GSi8jpRBsaFJPk2xTJbjU= =GgTv -----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 (#81384) next »