Re: How do I put a path to Sendmail in php script??
| From: | John Monfort | Date: | Fri, 30 Nov 2001 00:44:24 +0000 |
| Subject: | Re: How do I put a path to Sendmail in php script?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76129@lists.php.net to get a copy of this message | ||
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: 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
>