[eluser]wlvrn[/eluser]
Hello,
I'm having trouble sending an email.
If I used the controller-based setup, like this...
Code:
$config['protocol'] = 'sendmail';
$config['mailpath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$this->email->initialize($config);
... my email is sent fine. If I, however, attempt to create an email.php file and place it in my system/application/config directory and paste that exact same $cofig array into it, I get the following error...
Code:
You did not specify a SMTP hostname.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.
Oddly enough, if I change the email.php file to use "mail" instead of "smtp", I get the SAME error which leads me to think that the email.php isn't being used when the controller attempts to send the email.
Has anyone else noticed this?