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 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 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. 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 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/274691-contact-form-problem/#findComment-1413631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.