You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Go-Mailgen** is a Go library for generating professional HTML emails using a fluent, intuitive API. Simplify email creation with customizable templates and seamless integration into your Go applications. This project is inspired by the [mailgen](https://github.com/eladnava/mailgen) Node.js package, bringing its elegant email generation approach to the Go ecosystem.
11
13
12
14
## Features
13
15
14
16
-**Fluent API**: Build emails with a clean, chainable interface.
15
17
-**Inline CSS**: Ensures compatibility across major email clients.
16
-
-**Template-Based**: Use pre-built or custom templates for rapid development.
17
18
-**Easy Integration**: Works effortlessly with popular Go mail libraries like go-mail.
18
19
-**Chainable Methods**: Add content, actions, and tables in a straightforward manner.
19
-
-**Global Configuration**: Set default sender, product information, and theme for all emails.
20
+
-**Global Configuration**: Set default base email settings and themes.
20
21
21
22
## Installation
22
23
@@ -54,7 +55,7 @@ func main() {
54
55
From("no-reply@example.com", "Go-Mailgen").
55
56
Product(mailgen.Product{
56
57
Name: "Go-Mailgen",
57
-
URL: "https://github.com/ahmadfaizk/go-mailgen",
58
+
Link:"https://github.com/ahmadfaizk/go-mailgen",
58
59
}).
59
60
Theme("default"),
60
61
)
@@ -89,6 +90,7 @@ func main() {
89
90
You can find more examples in the [examples](examples) directory.
90
91
91
92
## Documentation
93
+
92
94
For detailed documentation, please visit the [Go-Mailgen documentation](https://pkg.go.dev/github.com/ahmadfaizk/go-mailgen).
93
95
94
96
## Supported Themes
@@ -97,11 +99,31 @@ The following open-source themes are bundled with this package:
97
99
98
100
-`default` by [Postmark Transactional Email Templates](https://github.com/ActiveCampaign/postmark-templates)
0 commit comments