Code Monkey home page Code Monkey logo

mailo's Introduction

Hi there ๐Ÿ‘‹

github stats

mailo's People

Contributors

ditschedev avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mailo's Issues

Plaintext alternative

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 add custom headers

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

Template Verification Always Throws TemplateNotFoundException

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.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency org.apache.maven.plugins:maven-source-plugin to v3.3.1
  • Update dependency org.assertj:assertj-core to v3.26.3
  • Update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.7.0
  • Update actions/setup-java action to v4
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci-test.yml
  • actions/checkout v3
  • actions/setup-java v1
maven
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

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.