Send Mail from

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Send Mail from

Postby justin105 » 08. July 2010 05:43

Hello,

I am trying to request an email recovery from a wordpress site i have locally, when it tries to send me the password it says the following

The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function...

How do I enable the mail() function in XAMPP for windows

Thanks

Justin
justin105
 
Posts: 2
Joined: 12. April 2010 01:41

Re: Send Mail from

Postby webuser » 08. July 2010 16:18

Mercury I think. Its comes with it and its for the mail client/server.
webuser
 
Posts: 13
Joined: 04. July 2010 05:34

Re: Send Mail from

Postby JonB » 08. July 2010 21:22

Ummm - first - I think you need to fix your php.ini file. (hopefully you only have one and its in XAMPP/php) ON a webhost this is already done for you, not so with XAMMP, as it is a test environment - aha!

Search for mail_function

DO NOT USE/UNCOMMENT THE LINE IN THE DEFAULT FILE THE SYNTAX IS WRONG!

here is the exact entry I used (my Wordpress installs send passowrd reteivals successfully). I'm pretty also sure you need an ISP SMTP connect that works on port 25. (or you will have to twiddle things)

sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

and then Fix the sendmail.ini

First - add an account for your ISP's SMTP server (you can use other ones if you want read the stuff in sendmail,ini)

#XXX
account xxx
host smtp.xxx.net
from your_email_addy@xxx.net
auth off

then make that account the default

# Set a default account
account default : xxx

Save it all, restart Apache and give it a whirl.
8)
My thanks to Nobbie, who explained this to me...

This assumes (my bad) you do NOT want to actually run your own mailserver (which is what Mercury is) - but merely send mail from your applications (like, gee, sendmail on the *nix world) :mrgreen:
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 59 guests