I don't know how you can find sendmail on that system if you don't have
telnet access.  Try writing a script that does an exec("which sendmail") and
see if it tells you.  I doubt it will, though.  Otherwise try different
sendmail locations: /usr/sbin/sendmail, /usr/lib/sendmail, etc.  The
.htacess file overwrites the value of the php.ini file, so you can specify
to php where sendmail is for any script that is under the directory your
.htaccess file resides in (unless they don't allow .htaccess).  I've had to
use this approach a couple times to get php to send mail off properly.

Ethan Schroeder
----- Original Message -----
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: "Ethan Schroeder" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 14, 2001 6:30 PM
Subject: Re: [PHP] need some ideas here...


> what??? I didn't understand... how will I find out where sendmail is in a
> free-web-host? I don't have telnet access... how can I figure that out?
and
> how a .htaccess file would help me here?
>
> At 19:50 14/5/2001 -0500, Ethan Schroeder wrote:
> >Find where there sendmail is and put this in an .htaccess file: php_value
> >sendmail_path  '/path/to/sendmail -t'
> >
> >Ethan Schroeder
> >
> >----- Original Message -----
> >From: "Christian Dechery" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Monday, May 14, 2001 7:04 PM
> >Subject: [PHP] need some ideas here...
> >
> >
> > > My free-web-hosting (www.f2s.com) does not allow PHP to send emails...
> >I've
> > > tried everything... the mail() function, my alternate function which
calls
> > > popen("/usr/lib/sendmail -t") and even a script.cgi with
'#!/usr/bin/php'
> > > and all that stuff...
> > >
> > > the mail simply won't go an mail() always returns false...
> > > I'm guessing there's no mail sending in this server...
> > >
> > > so what do I do?
> > >
> > > is it possible for me to call a script on another host from with a
script
> > > and return something to it?
> > >
> > > like
> > > <?php
> > > code ... code ... code...;
> > > code ... code ... code...;
> > >
> > > here I'd have some code to call a script in another host that can send
> > > mails, of course with the necessary parms...;
> > >
> > > code code code....;
> > > code code code....;
> > > ?>
> > > ____________________________
> > > . Christian Dechery (lemming)
> > > . http://www.tanamesa.com.br
> > > . Gaita-L Owner / Web Developer
> > >
> > >
> > > --
> > > 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]
> > >
>
> ____________________________
> . Christian Dechery (lemming)
> . http://www.tanamesa.com.br
> . Gaita-L Owner / Web Developer
>
>
> --
> 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]
>


-- 
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]

Reply via email to