Hi! I recently created a website that has a contact form that sends an email with the PHP Mailer class. I had to use my gmail account because I cannot get my LAMP server's SMTP protocol working... In my mail.php file, I display the password and account quite openly as such:
Now this file is externally linked to from the page using AJAX. How can I guarentee no one who knows the file exists can see it? Or specifically that they cannot see my password. I am new to encryption with web development. Any suggestions would be great! Is there someway to stop the file from being viewed except for when my AJAX function calls it? I have no idea what I should do.. Any keywords to get me started? Thanks for your time!