PHPMailer Hide SMTP Authentication?

穿精又带淫゛_ 提交于 2019-12-08 03:02:28

问题


Ok, 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


回答1:


Any developer with access to your code will be able to access your credentials. Saving these in a database may make it a little tougher to gain access to the details, but only slightly.

If you are truly concerned about the credentials used, create an account dedicated to your site and do not use a personal account.



来源:https://stackoverflow.com/questions/13017622/phpmailer-hide-smtp-authentication

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!