{"id":26467444,"url":"https://github.com/sevensource/html-email-service","last_synced_at":"2026-05-11T16:35:14.974Z","repository":{"id":5498722,"uuid":"6697653","full_name":"sevensource/html-email-service","owner":"sevensource","description":"Library for creating and sending HTML email with Spring. Contains functionality to transform text to html, as well as html to text.","archived":false,"fork":false,"pushed_at":"2020-10-13T00:21:46.000Z","size":109,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T12:53:59.568Z","etag":null,"topics":["email","email-sender","email-template","java","java-mail","spring","thymeleaf"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sevensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-15T01:06:41.000Z","updated_at":"2019-07-12T05:50:24.000Z","dependencies_parsed_at":"2022-07-26T01:16:11.876Z","dependency_job_id":null,"html_url":"https://github.com/sevensource/html-email-service","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/sevensource/html-email-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevensource%2Fhtml-email-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevensource%2Fhtml-email-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevensource%2Fhtml-email-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevensource%2Fhtml-email-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sevensource","download_url":"https://codeload.github.com/sevensource/html-email-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sevensource%2Fhtml-email-service/sbom","scorecard":{"id":813687,"data":{"date":"2025-08-11","repo":{"name":"github.com/sevensource/html-email-service","commit":"9506ae1cdc57ad03ebefb95141d11d1b25469343"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: downloadThenRun not pinned by hash: code-climate-runner.sh:5","Warn: downloadThenRun not pinned by hash: code-climate-runner.sh:24","Warn: downloadThenRun not pinned by hash: code-climate-runner.sh:27","Warn: downloadThenRun not pinned by hash: code-climate-runner.sh:29","Info:   0 out of   4 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-36p3-wjmg-h94x","Warn: Project is vulnerable to: GHSA-hh26-6xwr-ggv7","Warn: Project is vulnerable to: GHSA-4gc7-5j7h-4qph","Warn: Project is vulnerable to: GHSA-4wp7-92pw-q264","Warn: Project is vulnerable to: GHSA-g5mm-vmx4-3rg7","Warn: Project is vulnerable to: GHSA-558x-2xjg-6232","Warn: Project is vulnerable to: GHSA-564r-hj7v-mcr5","Warn: Project is vulnerable to: GHSA-9cmq-m9j5-mvww","Warn: Project is vulnerable to: GHSA-wxqc-pxw9-g2p8","Warn: Project is vulnerable to: GHSA-qcj6-jqrg-4wp2"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T13:43:15.007Z","repository_id":5498722,"created_at":"2025-08-23T13:43:15.007Z","updated_at":"2025-08-23T13:43:15.007Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email","email-sender","email-template","java","java-mail","spring","thymeleaf"],"created_at":"2025-03-19T14:41:45.977Z","updated_at":"2026-05-11T16:35:14.956Z","avatar_url":"https://github.com/sevensource.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub Tag](https://img.shields.io/github/tag/sevensource/html-email-service.svg?maxAge=3600)](https://github.com/sevensource/html-email-service/tags)\n[![Maven Central](https://img.shields.io/maven-central/v/org.sevensource.mail/html-email-service.svg?maxAge=3600)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.sevensource.mail%22%20AND%20a%3A%22html-email-service%22)\n[![License](https://img.shields.io/github/license/sevensource/html-email-service.svg)](https://github.com/sevensource/html-email-service/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/circleci/project/github/sevensource/html-email-service.svg)](https://circleci.com/gh/sevensource/html-email-service)\n\n\n# html-email-service\n\n## Wrapper library for creating and sending HTML email with Spring.\n\n * uses Thymeleaf for templating\n * transforms text to html\n * transforms html to text\n * attachments (inline and attachment)\n\n## Example\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.sevensource.mail\u003c/groupId\u003e\n\t\u003cartifactId\u003ehtml-email-service\u003c/artifactId\u003e\n\t\u003cversion\u003e${the.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n```java\n\n@Configuration\npublic class EmailServiceConfiguration {\n\t@Autowired\n\tApplicationContext applicationContext;\n\t\n\t// also see ConfigurableJavaMailSenderConfiguration\n\t@Autowired \n\tJavaMailSender javaMailSender;\n\t\n\t@Bean\n\tpublic EmailTemplateRendererService emailTemplateRenderService() {\n\t\treturn new EmailTemplateRendererService(factory);\n\t}\n\t\n\t@Bean\n\tpublic EmailSenderService emailSenderService() {\n\t\tTemplateEngineFactory factory = new DefaultTemplateEngineFactory(applicationContext);\n\t\treturn new EmailTemplateRendererService(factory);\n\t}\n}\n```\n\n```java\npublic void sendmail() {\n\tDefaultEmailModel model = new DefaultEmailModel();\n\tmodel.setFrom(\"foo@bar.com\", \"Foobar\");\n\tmodel.addTo(\"far@boo.com\", \"Farboo\");\n\tmodel.setSubject(\"Let's get things started\");\n\t\n\t//create a simple HTML representation from plain text\n\tString text = \"Make sure to check out http://www.github.com\"; \n\tString html = emailTemplateRendererService.textToHtml(text);\n\tmodel.setText(text);\n\tmodel.setHtml(html);\n\t\n\temailService.sendMail(model);\n\t\n\t// ...or render a Thymeleaf template into HTML and automatically\n\t// provide a text only fallback version\n\tMap\u003cString, Object\u003e renderModel = new HashMap\u003c\u003e();\n\trenderModel.put(\"message\", \"Check out http://www.github.com\");\n\thtml = emailTemplateRendererService.render(\"someTemplate\", emailModel, renderModel, Locale.ENGLISH);\n\ttext = emailTemplateRendererService.htmlToText(html);\n\tmodel.setText(text);\n\tmodel.setHtml(html);\n\t\n\temailService.sendMail(model);\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevensource%2Fhtml-email-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsevensource%2Fhtml-email-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsevensource%2Fhtml-email-service/lists"}