Leinster13 Posted February 15, 2011 Share Posted February 15, 2011 Hi guys I am a newbie with PHP and I have been trying to solve this problem for 3 days.. Ive set up a booking form on my website to be sent directly to my email once the client clicked on the send button.. The problem I am having while checking these pages on wamp is that the booking form is ok but when I click on the send button the following message error appears "Warning: mail() [function.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:\wamp\www\fluffy_paws\booking_form2.php on line 27" When I check online I have this message "500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed." Are my codes wrong??? My webhosting is Blacknight.com , Im on Windows Vista, my internet is a dongle with O2 ireland Thanks for your help! Quote Link to comment https://forums.phpfreaks.com/topic/227792-failed-to-connect-to-mailserver-at-localhost-port-25-verify-your-smtp-and/ Share on other sites More sharing options...
gristoi Posted February 15, 2011 Share Posted February 15, 2011 Do you have a mail server installed on your localhost? If not your emails going nowhere . Quote Link to comment https://forums.phpfreaks.com/topic/227792-failed-to-connect-to-mailserver-at-localhost-port-25-verify-your-smtp-and/#findComment-1174680 Share on other sites More sharing options...
Leinster13 Posted February 15, 2011 Author Share Posted February 15, 2011 I havent a clue... how can i find out? Quote Link to comment https://forums.phpfreaks.com/topic/227792-failed-to-connect-to-mailserver-at-localhost-port-25-verify-your-smtp-and/#findComment-1174682 Share on other sites More sharing options...
jcbones Posted February 15, 2011 Share Posted February 15, 2011 Wamp doesn't have a mail server set up by default. So most likely you don't. I always check my mail scripts on my public server AFTER I verify that everything else works. Quote Link to comment https://forums.phpfreaks.com/topic/227792-failed-to-connect-to-mailserver-at-localhost-port-25-verify-your-smtp-and/#findComment-1174708 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.