yami007 Posted March 17, 2009 Share Posted March 17, 2009 Hi, i'm running apache on windows xp sp3 when i try the mail function it gives me this error: Warning: mail() [function.mail]: SMTP server response: 550 noreply@ ansari.net relay mail disabled and this mail server requires smtp authentication.(from "noreply@ ansari.net" to "[email protected]" via "taoufika-e88917.com") in C:\AppServ\www\ansari\buy.php on line 35 how can i activate this mail funtion? please help.. Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/ Share on other sites More sharing options...
WolfRage Posted March 17, 2009 Share Posted March 17, 2009 Yeah that is a complicated subject, you have two options install a mail client or use an existing mail ISP to route your mail through. On the later it will be a custom function not your php mail() function. Although I have heard that you can modify your INI enough to set it up with certian mail providers that do not have a complex login. Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/#findComment-786950 Share on other sites More sharing options...
yami007 Posted March 17, 2009 Author Share Posted March 17, 2009 if you mean a mail server i instaled CMailServer 5.4.6. but i dont know how to use it along with apache.. Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/#findComment-786967 Share on other sites More sharing options...
jhlove Posted March 17, 2009 Share Posted March 17, 2009 if you want to mail from local. you must install mail server in your local computer. Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/#findComment-786972 Share on other sites More sharing options...
yami007 Posted March 17, 2009 Author Share Posted March 17, 2009 i looked for one and i found CmailServer, does it work? if so how does it work along with apache? Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/#findComment-786977 Share on other sites More sharing options...
iarp Posted March 17, 2009 Share Posted March 17, 2009 From the error you posted, it seems that mail() does work for you, just your settings in the configuration for ampache is trying to use a SMTP server that requires proper login and password before being able to use it. I'm not familiar with ampache config files so you may have to wait for someone else with better knowledge on that, or google. Quote Link to comment https://forums.phpfreaks.com/topic/149854-how-can-i-get-mailfunction-working-on-my-local-server/#findComment-786982 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.