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?
You can use the
SMTP for this.
SMTP configuration you can use any extension.
From this extension you can configure your
SMTP detail in admin and based on that you can send email from local system
If highest voted answer's repo doesn't show up than you can use below free extension by MagePlaza to send emails on xampp.