simybee Posted February 19, 2013 Share Posted February 19, 2013 HELP! My contact form is randomly saying this to people who try to contact me: 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 F:\mysite.co.uk\www\contact-send.php on line 73 Any ideas how to fix this? No messages are coming through??!! Thanks, Simon Quote Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/ Share on other sites More sharing options...
Stooney Posted February 19, 2013 Share Posted February 19, 2013 (edited) Your PHP installation is trying to send email through a local SMTP server that probably doesn't exist. You either need to point your php install to a working SMTP server or set up a local one. Edited February 19, 2013 by Stooney Quote Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/#findComment-1413480 Share on other sites More sharing options...
jazzman1 Posted February 19, 2013 Share Posted February 19, 2013 (edited) Just to be clear, SMTP is not a server, it's a mail transfer protocol using by mail servers to send and receive mail messages. To use this one locally you need to have a mail server. Edited February 19, 2013 by jazzman1 Quote Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/#findComment-1413498 Share on other sites More sharing options...
simybee Posted February 20, 2013 Author Share Posted February 20, 2013 Any ideas on how to point my PHP away from the localhost and to one that works? Quote Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/#findComment-1413589 Share on other sites More sharing options...
AyKay47 Posted February 20, 2013 Share Posted February 20, 2013 PHPMailer is a popular email transport class that supports sendmail, mail(), etc. Quote Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/#findComment-1413631 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.