Mail() error, can I troubleshoot
Briefly

Mail() error, can I troubleshoot
"i have a form whic h uses mail() but get Warning: mail(): Failed to connect to mailserver at localhost port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\xampp\htdocs\ashley\assets\mail\estimate.php on line 39 ERROR!"
"How do I set up th e SMTP port through gmail? Those are the wrong values."
"Follow this video to setup your SMTP with your google account. https://www.youtube.com/watch?v=ZfEK3WP73eY&t=55s"
The PHP mail() call failed because PHP tried to connect to a local mailserver on port 25 and none was available. php.ini smtp and smtp_port settings must point to a working SMTP server or code must use an SMTP client that supports authentication. Gmail requires authenticated SMTP with TLS or SSL using smtp.gmail.com and ports 587 (TLS) or 465 (SSL), along with valid account credentials. Accounts with two-factor authentication require an app password or OAuth2. On XAMPP for Windows, configure sendmail.ini or use PHPMailer/SwiftMailer to specify Gmail SMTP and credentials to relay messages successfully.
Read at www.sitepoint.com
Unable to calculate read time
[
|
]