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
Let this service build your html/text emails in a fluient manner. It doesn't try to reinvent the wheel - it simply extends the given [email-template](https://github.com/mailgun/transactional-email-templates) of mailgun and backed it for java to use it for many purposes.
8
+
Let this service build your html/text emails in a fluent manner. It doesn't try to reinvent the wheel - it simply extends the given [email-template](https://postmarkapp.com/mailmason) of postmark and backed it for java to use it for many purposes.
9
9
10
10
You can write your email content fluently and the template builder cares for the correct instyling, conversation to txt version etc...
11
11
12
-
For sending the email I can recommend the spring-boot-starter-mail or simplejavamail...
12
+
For sending the email I can recommend the spring-boot-starter-mail, simplejavamail or my [postmark-spring](https://github.com/rocketbase-io/postmark-spring)...
13
+
14
+
### release notes
15
+
- 1.x bases mailgun templates
16
+
- extra dependency on jsoup for auto inlining/transpiling to text
17
+
- doc for old api could be found in wiki
18
+
19
+
- 2.x bases on new postmark templates
20
+
- pom artifact group changed to **io.rocketbase.mail**
21
+
- removed jsoup from dependency and changed api in many cases
22
+
- cleaned up a lot of code
23
+
- separated module in two pices
24
+
- common builder
25
+
- markdown (with markdown support)
13
26
14
27
## features
15
28
16
29
- generate html and text mail via one fluent build
17
-
- just a few dependencies: jsoup + pebble-template engine
30
+
- just pebble-template engine as dependency
18
31
- support for the following content-types
19
32
- Logo in the header
20
-
- Header with custom Styling
21
33
- Text also with HTML support and Alignment configuration
22
34
- Image with Alignment configuration and Link options
23
35
- Button with custom Styling
24
36
- Footer with HTML support and Alignment configuration
.text("Thanks for trying [Product Name]. We’re thrilled to have you on board. To get the most out of [Product Name], do this primary next step:").and()
54
+
.button("Do this Next", "http://localhost").blue().and()
55
+
.text("For reference, here's your login information:").and()
56
+
.attribute()
57
+
.keyValue("Login Page", "{{login_url}}")
58
+
.keyValue("Username", "{{username}}")
59
+
.and()
60
+
.html("If you have any questions, feel free to <a href=\"mailto:{{support_email}}\">email our customer success team</a>. (We're lightning quick at replying.) We also offer <a href=\"{{live_chat_url}}\">live chat</a> during business hours.",
61
+
"If you have any questions, feel free to email our customer success team\n"+
62
+
"(We're lightning quick at replying.) We also offer live chat during business hours.").and()
63
+
.text("Cheers,\n"+
64
+
"The [Product Name] Team").and()
65
+
.copyright("rocketbase").url("https://www.rocketbase.io").suffix(". All rights reserved.").and()
.itemRow("https://cdn.shopify.com/s/files/1/0255/1211/6260/products/TCM1886-0718_201_fdf0be52-639f-4ea8-9143-6bd75e0821b1_small.jpg?v=1583509609", "Herren ten Classic T-Shirt\n"+
159
+
"FOREST GREEN HEATHER / XL", BigDecimal.valueOf(3995, 2))
0 commit comments