Re: [PHP4BETA] mail() doesn't work : bug ?
| From: | Olivier Cahagne | Date: | Wed, 10 Nov 1999 14:46:59 +0000 |
| Subject: | Re: [PHP4BETA] mail() doesn't work : bug ? | ||
| References: | 1 2 3 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-6110@lists.php.net to get a copy of this message | ||
> > I tried various setups :
> >
> > sendmail_path = /usr/sbin/sendmail -t
> > phpinfo() reports /usr/sbin/sendmail -t
> >
> > sendmail_path = "/usr/sbin/sendmail -t"
> > phpinfo() reports /usr/sbin/sendmail -t
> >
> > sendmail_path =
> > phpinfo() reports no value
> >
> > [no sendmail_path line]
> > phpinfo() reports /usr/sbin/sendmail -t
> >
> > But none of these actually sent a mail (and the following script always
> > reported "mailok").
> >
> > My mail.phtml script follows :
> >
> > <?
> > if (mail("cahagn_o@epita.fr", "My Subject", "Line"))
> > {
> > echo mailok;
> > }
> > else
> > {
> > echo mailnotok;
> > }
> > phpinfo();
> > ?>
>
> FWIW, I've had exact same problem. I don't think I found a solution.
What OS were you running ? and PHP ?
--
Olivier Cahagne
snina@ambafrance.org
olivier.cahagne@epita.fr
Tel: (613) 593 7406
Ambassade de France au Canada
Service Culturel
464, Wilbrod St.
K1N 6M8, Ottawa, Ontario, Canada