Or are you using a framework, or maybe a service that helps with that?
We have built https://www.mailersend.com for that use case. You can choose between our drag and drop editor or custom html templates.
EDIT: grammar