-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* On 21-01-02 at 16:54
* David Orn Johannsson said....
> > $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?
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]