This is the error
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()

Recommended Answers

All 2 Replies

Member Avatar for diafol

Do you have an SMTP server up and running? E.g. if you use XAMPP, it has "Mercury" installed, which you need to start.

Looks like PHP's mail() function is trying to connect via SMTP, but it's either not installed or configured improperly.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.