CodeIgniter Forums
php mailer - 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: php mailer (/showthread.php?tid=68320)



php mailer - eh3an2010 - 06-23-2017

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


my website : <non-English>


RE: php mailer - InsiteFX - 06-24-2017

You could create a new CodeIgniter website config file and add them in there then load them
into phpMailer


RE: php mailer - Diederik - 06-24-2017

There is not realy differce between where you store the smtp settings, in the database or in a file.

I would suggest creating a seperate gmail account only intended to send out emails.