Jump to content

mail functionality


gple

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/250628-mail-functionality/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/250628-mail-functionality/#findComment-1285904
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/250628-mail-functionality/#findComment-1285907
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.