Guest satish Posted January 5, 2009 Report Share Posted January 5, 2009 I have question on mail() function when ever I try to use or mail i get an error like: *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\form.php* on line *15 *I dont know where i am going wrong so please can you help what I have to configure on ini_set.php Quote Link to comment Share on other sites More sharing options...
falkencreative Posted January 5, 2009 Report Share Posted January 5, 2009 If you are attempting to work with the mail() function on your local machine, you will need to modify your PHP.ini file to include your correct SMTP and email information. Other members recently had questions about this too, so take a look at their posts first: http://www.killersites.com/forums/topic/259/trouble-with-forms-failed-to-connect-to-mailserver-at-localhost/ and post #23 and on on this thread: http://www.killersites.com/forums/topic/223/guys-need-help-with-wampserver/ Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.