Jump to content

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


farnoise

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/

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.