Invalid address: Invalid address: SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.

Hi Neha,

If you never had a problem before connecting to your email provider, then you should ask then for assistance. They might have internal server problems, or misconfiguration in your part.

But if you had none, then you should ask your email provider for the port and address of your email. Usually, SMPT is running on port 25, and you can get your SMTP address in your MX Record.

Thanks gon for reply ..my problem is solved the error was on domain hosting not in code.

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.