TravelTech Posted April 13, 2008 Share Posted April 13, 2008 I have been studying PHP for about a week after hodge podging poor script for 3 months and getting tired of not knowing what is happening with all the functions, etc. Anyway I've installed Apache all went well. Installed PHP, all went well and installed MySQL and all went well. My problem is, that the script I'm writing (from a book) to build a contact form uses the mail() function pulling the information it needs from the php.ini file [mail function] area. Here is the code that is throwing the error. $mailSent = mail($to, $subject, $message); ERROR displayed on the page after mail is sent. Warning: mail() [function.mail]: Failed to connect to mailserver at "smtpout.secureserver.net" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Aweb\htdocs\phpsolutions\contact.php on line 22. Here is my configuration of the [mail function] in the php.ini file. [mail function] ; For Win32 only. SMTP = smtpout.secureserver.net smtp_port = 25 I've tried changing the SMTP settings back to localhost and to pop.secureserver.net but nothing helps. Thanks for your help Link to comment https://forums.phpfreaks.com/topic/100966-php-mail-not-working-in-local-form/ Share on other sites More sharing options...
unidox Posted April 14, 2008 Share Posted April 14, 2008 You need a public smtp server, google it. Link to comment https://forums.phpfreaks.com/topic/100966-php-mail-not-working-in-local-form/#findComment-516407 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.