CodeIgniter Forums
Problem with Email Config file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Problem with Email Config file (/thread-56255.html)



Problem with Email Config file - El Forum - 12-05-2012

[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.


Problem with Email Config file - El Forum - 12-05-2012

[eluser]pickupman[/eluser]
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.
Code:
<?php
$config['protocol'] = 'smtp';




Problem with Email Config file - El Forum - 12-05-2012

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