If Sendmail is configured propoerly, then you should be able to call it
from the system prompt without having to worry about the path.

 That is, regardless if sendmail is in /usr/bin/sendmail or
/usr/local/bin/sendmail, you should be able to run it as:

%sendmail -argument $var $var

Hence, your php script shouldn't have any problems calling it. Regardless
of where it is located.

Alternately, you could run Sendmail from php as:

!/sendmail_path/sendmail -argument $var $var


Lastly,
if you need to a path (in an argument or passed variable), try this
concept:

$attached_file = "/path/to/file/filename.txt";

!/path/to/sendmail -argument $var $var < $attached_file;


** Doublecheck the syntax...the concept should be the same.

See if that helps!

-john

__________John Monfort_________________
_+-----------------------------------+_
     P E P I E  D E S I G N S
       www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-

On Thu, 29 Nov 2001, Mike wrote:

> The server that I am using has Sendmail in a different place than their path
> to php.  Also, you have to run php scripts with a cgi magic line
> (#!/usr/bin/php).  I am using the mail() function to send mail, but I don't
> know how to put the path to Sendmail into the script so that mail() finds
> it.  Can someone help?
>
>
>
> --
> 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