Hello, I’ve already checked every opened topic but I can’t find the answer.
I’d like to create a Contact Form and integrate it in my “Contact me” section on my WP site.
It’s a form that should allow people to contact me so, after they write the message, I’d like to receive it as a mail to my Gmail account.
but at this point “3) Copy the config.example.php to config.php and edit the required settings”, I don’t understand where I can find the “config.php” file nor I know how and where to create it using my Control Panel File Manager…
If you are using WordPress, I would suggest to find a contact form plugin for WordPress (like Contact Form 7) and an SMTP sending plugin (like WP Mail SMTP). That’s a much easier route than trying to implement it with a completely standalone script.
The config.example.php can be found in the base folder of the zip file. It should be in the location where you uploaded the contact form code.
You can copy and paste files from the file manager through the right click menus.
In order to do what I wanted using only FREE versions (of InfinityFree and all the plugins), I installed these plugins:
-WP Forms Lite, with which I created my “Contact me” form which I integrated in my Contact page;
-WP Mail SMTP, which I set following the plugin “Setup Wizard” which also gave me the link to the instructions for using my gmail account to set the Google API service and obtain the Client ID Key and Client Secret Key (they suggested using Google API instead of connecting to Gmail using SMTP credentials for security reasons); here it is:
After I installed and set up the two plugins, they started “talking to each other” automatically and my Contact form now works like a charm…I can receive the emails my clients send me and that’s what I wanted