CodeIgniter Forums

Full Version: Problem with Email Config file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Incito Networks[/eluser]
Trying to use the codeigniter email class to send emails.

Putting the configuration as detailed in the email class user guide into a configuration file called email.php.

As soon as I do this the contents of the email.php is displayed in the header of every web page of our app.

Any suggestions to stop this happing ?

If I use a different file name it doesn't happen.

El Forum

My guess is that you do not have the code placed inside of php tags. You are likely missing an open php tag at the top of your file.
$config['protocol'] = 'smtp';

El Forum

[eluser]Incito Networks[/eluser]
Correct. Thank you :-)