ditschedev / mailo Goto Github PK
View Code? Open in Web Editor NEWThis is a client for sending emails easily from a Spring Boot REST API. It makes use of Mustache for templating and is adaptable.
This is a client for sending emails easily from a Spring Boot REST API. It makes use of Mustache for templating and is adaptable.
Currently, it's not possible to provide a plaintext alternative to HTML emails.
It's also not possible to send out only plaintext emails, which is a needed feature.
Add the ability to have custom headers to the MailBuilder. The custom headers added to the Mailbuilder will be appended to the message headers within the MailProvider.
Unsure if this would be specific to all extensions of AbstractMailProvider or specifically to the SmtpMailProvider
The template verification within the renderMustacheTemplate
method in the MjmMailBuilder
will always throw an exception when the project is packaged as a jar in prod:
2023-06-01 21:55:26
2023-06-01 21:55:26 dev.ditsche.mailo.exception.TemplateNotFoundException: Template file "./templates/RegistrationConfirmation.mjml" can not be found in classpath
2023-06-01 21:55:26 at dev.ditsche.mailo.factory.MjmlMailBuilder.renderMustacheTemplate(MjmlMailBuilder.java:107) ~[mailo-1.1.3.jar!/:na]
2023-06-01 21:55:26 at dev.ditsche.mailo.factory.MjmlMailBuilder.loadTemplate(MjmlMailBuilder.java:98) ~[mailo-1.1.3.jar!/:na]
Specific Code:
if(ClassLoaderUtil.getResource(templatePath, MjmlMailBuilder.class) == null)
throw new TemplateNotFoundException("Template file \"" + templatePath + "\" can not be found in classpath");
This is due to the fact that You can't create a File instance, because the only file you have is the JAR. That's why getResource() returns URL. stack overflow
This makes it so it works when ran locally through Intellij. However, it fails when the jar is packaged and ran in a docker container.
I am unsure if you found a way around this when packaging the project as a jar; however, from my research, I think using getResourceAsStream
instead of getResource
will work.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/ci-test.yml
actions/checkout v3
actions/setup-java v1
pom.xml
com.sun.mail:javax.mail 1.6.2
org.projectlombok:lombok 1.18.28
com.sendinblue:sib-api-v3-sdk 4.1.1
com.wildbit.java:postmark 1.5.3
com.sendgrid:sendgrid-java 4.9.3
com.github.spullara.mustache.java:compiler 0.9.10
org.apache.httpcomponents:httpclient 4.5.14
org.junit.jupiter:junit-jupiter 5.9.3
org.assertj:assertj-core 3.24.2
org.apache.maven.plugins:maven-surefire-plugin 3.1.0
org.apache.maven.plugins:maven-failsafe-plugin 3.1.0
org.apache.maven.plugins:maven-source-plugin 3.3.0
org.apache.maven.plugins:maven-javadoc-plugin 3.5.0
org.sonatype.plugins:nexus-staging-maven-plugin 1.6.13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.