{"repo":"matcornic/hermes","free":true,"listed":false,"github":"https://github.com/matcornic/hermes","clone":"git clone https://github.com/matcornic/hermes.git","description":"Golang package that generates clean, responsive HTML e-mails for sending transactional mail","language":"Go","stars":3020,"topics":["golang","hermes","generator","mailgen","smtp","template","templating","email","emails","email-template-generator"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Hermes Hermes is the Go port of the great mailgen engine for Node.js. Check their work, it's awesome! It's a package that generates clean, responsive HTML e-mails for sending transactional e-mails (welcome e-mails, reset password e-mails, receipt e-mails and so on), and associated plain text fallback. Demo Usage First install the package: Migrate back from v2 to v1.3.0 At the time of v2 creation, Go modules logic and best practices were still unsure. v1 did not use modules. Having a dedicated v2 module is meant to be used for projects hosting and maintaining v1 and v2 at the same time, so people can use both versions at the same time. There is no need for that in this kind of project. Now that go modules usage is standard, in v1 , starting from v1.3.0 tags, we decided to migrate back to github.com/matcornic/hermes instead of github.com/matcornic/hermes/v2 . v2 tags will still use github.com/matcornic/hermes/v2 as the import path, normal way will use github.com/matcornic/hermes as the import path. So, just replace your import path from github.com/matcornic/hermes/v2 to github.com/matcornic/hermes and run go get github.com/matcornic/hermes@v1.3.0 (or newer) to update the dependency. Use Hermes Then, start using the package by importing and configuring it: Next, generate an e-mail using the following code: This code would output the following HTML template: And the following plain text: Theme templates will be embedded in your application binary. If you want to use external temp","default_branch":null,"files":null,"tree":[],"storefront":"/r/matcornic","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/matcornic/hermes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}