Problem with Email Config file

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

#2
[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';


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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.