4

I'm working on a module which sends emails from admin panel on some action. I want to test these emails on localhost. How can I configure my Magento 2.1 settings or add SMTP so that sends emails over localhost?

5

You can use the SMTP for this. And for SMTP configuration you can use any extension.

https://github.com/emizentech/magento2-custom-smtp

From this extension you can configure your SMTP detail in admin and based on that you can send email from local system

  • i am getting this No connection could be made because the target machine actively refused it. after installation – Sarvesh Tiwari Feb 22 '17 at 12:21
  • can you help me please – Sarvesh Tiwari Feb 22 '17 at 12:22
  • @ErSarveshVTiwari ... take a look at github.com/magepal/magento2-gmailsmtpapp/issues/12 – Renon Stewart Jun 15 '17 at 11:45
  • 2
    Unfortunately the repository in the answer has been the subject of a DMCA takedown and is no longer available. – Chris Lingwood Jun 28 '17 at 11:05
  • 3
    The URL does is not valid anymore. That's why StackExchange encourages to put full answers here rather than URLs and links. Links get broken and content gets removed. – Mohammed Joraid Jul 24 '17 at 4:20
1

If highest voted answer's repo doesn't show up than you can use below free extension by MagePlaza to send emails on xampp.

https://www.mageplaza.com/magento-2-smtp/

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.