Skip to content Skip to sidebar Skip to footer

Failed To Connect To Mailserver At "localhost" Port 587, Verify Your "smtp" And "smtp_port" Setting In Php.ini Or Use Ini_set() In Wamp Server

i am using simple send email in php and get this error Warning: mail() [function.mail]: Failed to connect to mailserver at 'localhost' port 587, verify your 'SMTP' and 'smtp_po

Solution 1:

SMTP server is required for sending emails. You need to mention SMTP host and SMTP port in php.ini file. If your config is proper then the mail function will work. There are various SMTP servers are available. You can search for them.


Post a Comment for "Failed To Connect To Mailserver At "localhost" Port 587, Verify Your "smtp" And "smtp_port" Setting In Php.ini Or Use Ini_set() In Wamp Server"