0

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.

Any help?

  • You can use SMTP module for testing emails from localhost. This should work consistently even when you migrate the site to a live server. – Aram Boyajyan Mar 23 '16 at 11:01
  • I've tried this solution actually but it didn't work for me. I also tried PHPMailer. I have tried to use also a "sendmail.exe" although I am on Windows. – Souha Mar 23 '16 at 11:08
1

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.

0

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

Username: --emailid--

Password: --password--

Click SEND TEST E-MAIL.. Then Save. That's it.

0

If you are running on windows using something like xampp, you can do this without using the drupal smtp module:

  1. edit your sendmail.ini
  2. you will then need to set variables like:
    smtp_server=
    smtp_port=465
    smtp_ssl=auto
    auth_username=....
    auth_password=...

  3. 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.