1751974 Members
5216 Online
108784 Solutions
New Discussion юеВ

sendmail: not found

 
Henry Chua
Super Advisor

sendmail: not found

I wrote a scrip that send mail to a group of recipient and put it on cron. Funny things is sometime it works but sometime it done.. the error is:

sendhtmlmail.sh[21]: sendmail: not found

how come it cant find sendmail?

Thanks.

4 REPLIES 4
Emir Faisal
Frequent Advisor

Re: sendmail: not found

Not information here. Maybe you should show us how you invoke the sendmail command from the script.

EF
Everything is possible, if you don't know what you're talking about.
Emir Faisal
Frequent Advisor

Re: sendmail: not found

Not much information here. Maybe you should show us how you invoke the sendmail command from the script.

EF
Everything is possible, if you don't know what you're talking about.
Alexander Chuzhoy
Honored Contributor

Re: sendmail: not found

You can define PATH in your crontab or use the full to execute the script.
Please post the crontab file if you need more help.
Steven E. Protter
Exalted Contributor

Re: sendmail: not found

Shalom,

cron has nothing, very little PATH, no environment, no TERM variables. You have to give all this to it for it to function normally.

It is not a command line interactive environment. It is like a new user, you need to tell it everything.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com