I can't test sending emails with Drupal 7 on my local host. I have been searching for some solutions for more than 10 days but unfortunately the problem still exists.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
You can also use Maillog to test emails locally.
Maillog provides an easy possibility to log all Mails for debugging purposes. It's possible to prevent the mails to being sent, so there is no need for an extra mail server to test the mail functionality of other modules or the drupal core. Additionally you can immediately display the mail through the devel dpm() facility.
Use toolheap which will work for windows. Add SMTP module and set in configuration of
SMTP Authentication support >> SMTP SERVER SETTINGS
SMTP server: smtp.gmail.com
SMTP port: 465
Use encrypted protocol: Use SSL
SMTP Authentication support >> SMTP AUTHENTICATION
Click SEND TEST E-MAIL.. Then Save. That's it.
If you are running on windows using something like xampp, you can do this without using the drupal smtp module:
you will then need to set variables like:
edit your php.ini and uncomment out sendmail line, for instance:
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Then it should work once apache is restarted.