how to send email in joomla if my webpage is run on localhost?

791 Views Asked by At

i used login module in my webpage. in that by clicking on 'forgot password?' i need to give an email-address but by clicking on Send button the error is 'could not install mail function'. so, please give suggestion, my web page is running on localhost.

2

There are 2 best solutions below

0
On BEST ANSWER

It appears your computer's version of php does not have working mail. I would suggest you A: reinstall joomla, B: find the hash function in the php and replace the old password hash with a new one, or C: find a mail plugin for your version of xamp/wamp/whatever.

0
On

If you are in a Windows platform try the following:

  1. Open the php.ini file. For XAMPP, it is located in C:\XAMPP\php\php.ini
  2. Change the localhost to the smtp server name of your ISP. Leave smtp_port as 25.
  3. Change sendmail_from from [email protected] to your domain email address which will be used as the from address
  4. Restart XAMPP or WAMP (apache server)
  5. Try to send the mail using the mail() function

I think it should solve your problem.