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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • 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.