I've tried removing the -bs option, that gave another error stating it needed to have switches for the sendmail command. I've also checked on the server, and sendmail is exactly where it should be, /usr/sbin/sendmail. Any ideas?Error: Sendmail cannot be seen with lstat(). The command given [/usr/sbin/sendmail -bs] does not appear to be valid.
sendmail command problem
Moderators: Chris Corbyn, General Moderators
sendmail command problem
We've switched to a new server, so I'm setting up Swift again. I'm trying to use the sendmail option, but it fails, giving this error:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
It's a permissions issue on the server. To be honest I'm probably going to remove this check. I added it because I used to get loads of people telling me the sendmail connection doesn't work when in fact the problem was that sendmail didn't even exist
More annoying is the fact that if sendmail doesn't exist, PHP just hangs because it starts a BASH or DOS process instead...
You can edit the code in swift to remove that check and it will work if you're 100% it's there. Some servers (I still haven't worked out how to do it) have the permissions set so you can execute PHP, but you can't stat it. Very odd, but fixable.
Just remove this entire "if" block from lib/Swift/Connection/Sendmail.php in the start() method.
You can edit the code in swift to remove that check and it will work if you're 100% it's there. Some servers (I still haven't worked out how to do it) have the permissions set so you can execute PHP, but you can't stat it. Very odd, but fixable.
Just remove this entire "if" block from lib/Swift/Connection/Sendmail.php in the start() method.
Code: Select all
if (!@lstat($this->getPath()))
{- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia