CodeIgniter Forums
Email Class: Problem with 'protocol' setting - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Email Class: Problem with 'protocol' setting (/showthread.php?tid=3118)



Email Class: Problem with 'protocol' setting - El Forum - 09-11-2007

[eluser]ortsanfang[/eluser]
Since CI 1.5.3 I've used the following code in on of my controllers:

Code:
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';

With 1.5.4 sending emails stopped working. In my Apache error log I get the message:

sh: /sendmail: No such file or directory

If I set the protocol to

Code:
$config['protocol'] = '/usr/sbin/sendmail';

or if I omit the protocol setting (in the controller), sending emails works again.

Any ideas what's wrong?


Email Class: Problem with 'protocol' setting - El Forum - 09-11-2007

[eluser]ortsanfang[/eluser]
Working 90 hours per week seems not a good idea :-)

Everything is fine, I turned on safe_mode in the meantime and forgot it.