Jump to content

php mail() is not working on my Apache localhost (Win xp)


Recommended Posts

Hey guys,

I configed my Apache, to load .php formats. Everything works fine. I added the mail() function to php.ini I had some troubles with that too, but got it done, Now when I want to send a form to my email it sends the data from from.html to proccessor.php and I dont see any errors I even see the thank_you.htm page that confirms the message but I can't recieve the email. I dont think there is something wrong with my SMTP setings cuz if it was I should see the error message. Anyway If anybody can help me That would be great, If not can anybody tells me how can I setup PHP to send my emails through remote smtp servers (Like Yahoo or whatever) I dont care where I just want to recieve those emails

 

Thanks

I dont think there is something wrong with my SMTP setings cuz if it was I should see the error message. Anyway If anybody can help me That would be great, If not can anybody tells me how can I setup PHP to send my emails through remote smtp servers (Like Yahoo or whatever) I dont care where I just want to recieve those emails

The mail() function will not work on a windows xp local desktop as there is no mail transfer agent available for php to use i.e sendmail on a webserver. You can use a Yahoo, Gmail or whatever SMTP server but unfortunately they require authentication which you cannot supply in your php configuration. So the answer is to use a library that can support SMTP i.e

http://pear.php.net/package/Mail

http://swiftmailer.org/

I opend this link

http://pear.php.net/package/Mail

 

And I download

1.1.14 (stable) was released on 2006-10-11

 

Now I have a ZIP package oin my desktop with bunch of PHP files in it ... I thought it's what I was suppose to do!!

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.