tranxmenhub Posted February 17, 2015 Share Posted February 17, 2015 Hi, I am a newnbie seeking a job at a financial institution, I am trying to get some html forms to submit data to mysql database using PHp and as well sends same data captured to email. Records are being saved to localhost database but I get Congratulations , this page is confirmation that you are now registered for Enrollment. 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() inC:\xampp\htdocs\form\enroll\mailpost.php on line 55 WHILE I MIGRATE TO LIVE SERVER.. I GET THIS ERROR... Failed to connect Enrollment is not successful, Please check back later Congratulations , this page is confirmation that you are now registered for Enrollment. Quote Link to comment https://forums.phpfreaks.com/topic/294675-saving-to-127001-database-but-not-sending-email-not-saving-to-live-db-but-sends-email-no-content/ Share on other sites More sharing options...
scootstah Posted February 17, 2015 Share Posted February 17, 2015 Seems like credential problems in both cases. Do you have a mail server on your localhost? Quote Link to comment https://forums.phpfreaks.com/topic/294675-saving-to-127001-database-but-not-sending-email-not-saving-to-live-db-but-sends-email-no-content/#findComment-1505936 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.