Page 1 of 1
[solved] Could not execute: /usr/sbin/sendmail
Posted: Sat Apr 11, 2015 12:10 am
by FCazabon
I'm trying to configure CMSMailer to use sendmail and I get this error when trying to send a copy of a form to the user specified email address in the form:
Could not execute: /usr/sbin/sendmail
I guess it's not finding the script/executable, but I don't know where to look for it.
Any help much appreciated!
(sorry, I posted this in the wrong forum earlier today so I am re-posting where I think I should have done it in the first place)
Re: Could not execute: /usr/sbin/sendmail
Posted: Sat Apr 11, 2015 10:32 am
by khurram0336
CMSMailer is used to send mail, but it must be configured to your host's requirements. Check with your host so that you have entered the right information.
Re: Could not execute: /usr/sbin/sendmail
Posted: Sat Apr 11, 2015 1:30 pm
by FCazabon
Thanks. Cmsmailer is properly configured as the test email works. The problem seems to be with the form when it tries to send an email to the email address filled in by the user. The form is done using form builder and the email from address field type is what is causing the problem. If I set it to fill the from field on the email it doesn't work, apparently because at least one of the sender or recipient needs to be a valid email account on the host. If I change the field to fill in the reply to field it works
Re: Could not execute: /usr/sbin/sendmail
Posted: Sat Apr 11, 2015 9:46 pm
by paulbaker
In Extensions > CMS Mailer > From address: the email (on my hosting) needs to be something@TheHostedDomain.com.
If you still have issues, try Mailer method "mail" which is what I always use.
Re: Could not execute: /usr/sbin/sendmail
Posted: Mon Apr 13, 2015 8:39 am
by velden
FCazabon wrote:Thanks. Cmsmailer is properly configured as the test email works. The problem seems to be with the form when it tries to send an email to the email address filled in by the user. The form is done using form builder and the email from address field type is what is causing the problem. If I set it to fill the from field on the email it doesn't work, apparently because at least one of the sender or recipient needs to be a valid email account on the host. If I change the field to fill in the reply to field it works
Yes, it's called email relaying and it's often not allowed. If the 'reply-to' option works just use that. It's probably the most convenient option.
If that doesn't work either you could choose to use a normal text input field for the visitor's email address.
[solved] Re: Could not execute: /usr/sbin/sendmail
Posted: Mon Apr 13, 2015 11:55 am
by FCazabon
Thanks, I have used Reply-to only.