Magento 2 Send Email Example

Sometime you need a small script to send a simple email. For example to warn a store owner that a import has failed. This code snippet shows you, in my opinion, the best way to send such email. Without bypassing all the Magento plugins that enable or disable emails and ore add important headers. 

You can also checkout the example module on our github

https://github.com/experius/Magento-2-Module-Experius-SendSimpleEmailExample