I had to youtube and google tutorials on how to integrate PHPMailer. https://github.com/PHPMailer/PHPMailer
Basically you have to read the directions in the document folder about PHPMailer. Download PHPMailer and configure it. I ran into issues linking it with my Gmail account but finally after 12 hours of troubleshooting got it to work. What PHPMailer does is uses your email account to send yourself what the 'user' is inputting on your site. When you get it to work you'll see an email from yourself to you but in the subject area it will have the email the user inputted.
The 2 issues with connecting to my Gmail account was:
(1.)You have to have a web app password instead of your normal gmail password. (this might be the case because I have 2 step verification).
(2.)I tested my PHPMailer to work on my local server but it failed SMTP with errors on my hosted server. The fix was working with my host to allow outgoing request by configuring the firewall.
What is the easiest way to get a mail […]
Basically you have to read the directions in the document folder about PHPMailer. Download PHPMailer and configure it. I ran into issues linking it with my Gmail account but finally after 12 hours of troubleshooting got it to work. What PHPMailer does is uses your email account to send yourself what the 'user' is inputting on your site. When you get it to work you'll see an email from yourself to you but in the subject area it will have the email the user inputted.
The 2 issues with connecting to my Gmail account was:
(1.)You have to have a web app password instead of your normal gmail password. (this might be the case because I have 2 step verification).
(2.)I tested my PHPMailer to work on my local server but it failed SMTP with errors on my hosted server. The fix was working with my host to allow outgoing request by configuring the firewall.
Good luck!