CodeIgniter Forums
help - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: help (/showthread.php?tid=65561)



help - atlasweb - 06-26-2016

hi, I'm using PHPMailer to send email.

So in the php code I add my SMTP username, which is my gmail account and the SMTP password, which is my gmail account password.

So my GMAIL ACCOUNT ACCESS is EXPOSED in php CODE, although the server discards the php after it's been interpreted so nobody can see it, my question is, is this reliable? Should I leave my gmail access in the code or should I save it in my database?

Thanks in advance



RE: help - ciadmin - 06-26-2016

Store your gmail account info in a config file inside application/config/production
See http://www.codeigniter.com/user_guide/libraries/config.html#environments

ps - Removed extraneous & non-English website link from your post.