简体   繁体   中英

Could not execute: /usr/sbin/sendmail

I'm trying to send mail through PHP Mailer. Once i click on submit getting this error,

Could not execute: /usr/sbin/sendmail

I googled it but couldn't find the right answer which will help me solving this. Please help me experts. Thanks in advance.

This suggests you're sending using the default transport, which uses PHP's mail() function, which in turn requires that you have a sendmail binary installed on your local machine. If you don't have one, it can't work and will give you this error. Alternatively you may have one installed but in a different location, in which case you ned to update your php.ini file to point at it (see sendmail_path ) You need to either install a mail server such as postfix, or switch to the SMTP transport and use a remote server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM