Jump to content

question on mai()


Guest satish

Recommended Posts

Guest satish

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

Link to comment
Share on other sites

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/

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...