How to hide App password for sending emails via Gmail

I’m wondering how to hide the app password as I want to send emails from a form. Normally it would be kept in a file outside of htdocs but this is not permitted by the looks of it.

its not really an issue having the files in htdocs as long as your email form is written correctly in server side php and doesn’t expose any details

infinityfree has created a contact form for just this task and its available from github by clicking the link below

9 Likes

I see, thank you

1 Like

I can strongly reccomend the infinity free contact form. I used it on 2 of my sites to get me started. And once I understood it, I modified it to fit my needs :slight_smile: Its really simple once you understand it :slight_smile:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.