gdk123 Posted March 9, 2007 Share Posted March 9, 2007 When i am executing the page on local server the mail function gives an error. but the same code works very well when i uploads it on a server.I am unable to set the SMTP Server. Link to comment Share on other sites More sharing options...
vijay Posted March 9, 2007 Share Posted March 9, 2007 Hi.. for that you have to set smtp setting by ini_set('SMTP','smtp_server'); smtp_server: it is the smtp server which will provide mail transfer service.. suppose this will help you.. Regards, Vijay Link to comment Share on other sites More sharing options...
justsomeguy Posted March 11, 2007 Share Posted March 11, 2007 If you don't have access to an SMTP server from your local network, don't worry about it. When I'm developing a site I usually just ignore the email errors, if necessary I troubleshoot it online if there are any problems. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now