Email not working with sendmail |
I am trying to send email using sendmail.
Below is my email.php config file. $config['protocol'] = 'sendmail'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; The email->print_debugger() gives Exit status code: 64 Unable to open a socket to Sendmail. Please check settings. Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method. But sendmail works in CLI Am I missing something? Thanks in advance ![]()
It sounds like PHP is lacking a sendmail extension, or is not properly configured to send email through sendmail. I've never used sendmail, only SMTP and mail, so just answering based on the error you provided.
Similar to above, I've never used sendmaiil so can't really help here.
Have you tried using phpMailer https://github.com/ivantcholakov/codeigniter-phpmailer I find it works great however I had to modify database.php in config folder to add elements to config array for MySQL port and socket
Thank you for your assistance.
I figured it out. It was due to the use of simultaneous use of -r and -f options in the command that codeigniter uses. https://github.com/bcit-ci/CodeIgniter/issues/4343 |
Welcome Guest, Not a member yet? Register Sign In |