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! 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 . 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? 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. 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
Archived
This topic is now archived and is closed to further replies.