gple Posted November 7, 2011 Share Posted November 7, 2011 hello, I am running php locally on my machine but it seems that when I try to call mail () function, I get error messages. I believe that I need to set up a mail server on my machine. Is that an accurate statement? whats the easiest way to do this? Is having OUTLOOK installed on the machine sufficient? Quote Link to comment https://forums.phpfreaks.com/topic/250628-mail-functionality/ Share on other sites More sharing options...
Gotharious Posted November 7, 2011 Share Posted November 7, 2011 Yes, you need to install a mail server or use a remote one if you have a hosting account somewhere if you have outlook installed, and you configured an email address there and using it, if you know the SMTP server and such, you can just head to your php.ini file and change to that email server instead of local host Quote Link to comment https://forums.phpfreaks.com/topic/250628-mail-functionality/#findComment-1285904 Share on other sites More sharing options...
gple Posted November 7, 2011 Author Share Posted November 7, 2011 ok, so i pulled the SMTP and host and added it to my php.ini. restarted apache and now get this: [Mon Nov 07 11:09:22 2011] [error] [client 127.0.0.1] PHP Warning: mail() [<a href='function.mail'>function.mail</a>]: SMTP server response: 550 bosauthsmtp13: Host 108.14.81.2: No unauthenticated relaying permitted in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\add_contact.php on line 49, referer: http://localhost/index.php?func=4 Quote Link to comment https://forums.phpfreaks.com/topic/250628-mail-functionality/#findComment-1285907 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.