{"id":23065565,"url":"https://github.com/migangqui/spring-email-api","last_synced_at":"2026-04-29T20:32:32.395Z","repository":{"id":42124479,"uuid":"177021792","full_name":"migangqui/spring-email-api","owner":"migangqui","description":"Spring Email API for Java and Kotlin","archived":false,"fork":false,"pushed_at":"2024-10-03T17:03:21.000Z","size":53,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T11:42:08.703Z","etag":null,"topics":["api","java","kotlin","maven","spring"],"latest_commit_sha":null,"homepage":"https://migangqui.github.io/spring-email-api/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/migangqui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-03-21T20:50:16.000Z","updated_at":"2023-02-02T09:31:07.000Z","dependencies_parsed_at":"2025-08-15T11:32:15.862Z","dependency_job_id":"efdc70a6-b445-4268-83ac-3317215e8c90","html_url":"https://github.com/migangqui/spring-email-api","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/migangqui/spring-email-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migangqui%2Fspring-email-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migangqui%2Fspring-email-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migangqui%2Fspring-email-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migangqui%2Fspring-email-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/migangqui","download_url":"https://codeload.github.com/migangqui/spring-email-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/migangqui%2Fspring-email-api/sbom","scorecard":{"id":109172,"data":{"date":"2025-08-04","repo":{"name":"github.com/migangqui/spring-email-api","commit":"85386527382d982df233006808828a540cc3129f"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":2.8,"checks":[{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/maven-deploy-java.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-deploy-kotlin.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-java.yml:1","Warn: no topLevel permission defined: .github/workflows/maven-kotlin.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-deploy-java.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-deploy-java.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-deploy-java.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-deploy-java.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-deploy-kotlin.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-deploy-kotlin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-deploy-kotlin.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-deploy-kotlin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-java.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-java.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-java.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-java.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-kotlin.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-kotlin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven-kotlin.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/migangqui/spring-email-api/maven-kotlin.yml/master?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction 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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"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/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 22 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"42 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-vmq6-5m68-f53m","Warn: Project is vulnerable to: GHSA-6v67-2wr5-gvf4","Warn: Project is vulnerable to: GHSA-pr98-23f8-jwxv","Warn: Project is vulnerable to: GHSA-h46c-h94j-95f3","Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-27hp-xhwr-wr2m","Warn: Project is vulnerable to: GHSA-5j33-cvvr-w245","Warn: Project is vulnerable to: GHSA-7w75-32cg-r6g2","Warn: Project is vulnerable to: GHSA-83qj-6fr2-vhqg","Warn: Project is vulnerable to: GHSA-cx6h-86xw-9x34","Warn: Project is vulnerable to: GHSA-fccv-jmmp-qg76","Warn: Project is vulnerable to: GHSA-g8pj-r55q-5c2v","Warn: Project is vulnerable to: GHSA-h2fw-rfh5-95r3","Warn: Project is vulnerable to: GHSA-h3gc-qfqq-6h8f","Warn: Project is vulnerable to: GHSA-q3mw-pvr8-9ggc","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GHSA-r6j3-px5g-cq3x","Warn: Project is vulnerable to: GHSA-wc4r-xq3c-5cf3","Warn: Project is vulnerable to: GHSA-wm9w-rjj3-j356","Warn: Project is vulnerable to: GHSA-v682-8vv8-vpwr","Warn: Project is vulnerable to: GHSA-rc42-6c7j-7h5r","Warn: Project is vulnerable to: GHSA-xf96-w227-r7c4","Warn: Project is vulnerable to: GHSA-4gc7-5j7h-4qph","Warn: Project is vulnerable to: GHSA-4wp7-92pw-q264","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-2rmj-mq67-h97g","Warn: Project is vulnerable to: GHSA-2wrp-6fg6-hmc5","Warn: Project is vulnerable to: GHSA-4wrc-f8pq-fpqp","Warn: Project is vulnerable to: GHSA-ccgv-vj62-xf9h","Warn: Project is vulnerable to: GHSA-hgjh-9rj2-g67j","Warn: Project is vulnerable to: GHSA-cx7f-g6mp-7hqm","Warn: Project is vulnerable to: GHSA-g5vr-rgqm-vf78","Warn: Project is vulnerable to: GHSA-w3c8-7r8f-9jp8","Warn: Project is vulnerable to: GHSA-3mc7-4q67-w48m","Warn: Project is vulnerable to: GHSA-98wm-3w3q-mw94","Warn: Project is vulnerable to: GHSA-9w3m-gqgf-c4p9","Warn: Project is vulnerable to: GHSA-c4r9-r8fh-9vj2","Warn: Project is vulnerable to: GHSA-hhhw-99gj-p3c3","Warn: Project is vulnerable to: GHSA-mjmj-j48q-9wg2","Warn: Project is vulnerable to: GHSA-w37g-rhq8-7m4j"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T11:42:14.472Z","repository_id":42124479,"created_at":"2025-08-15T11:42:14.534Z","updated_at":"2025-08-15T11:42:14.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274950065,"owners_count":25379561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"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":["api","java","kotlin","maven","spring"],"created_at":"2024-12-16T05:08:58.875Z","updated_at":"2026-04-29T20:32:32.365Z","avatar_url":"https://github.com/migangqui.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring Email API (Java/Kotlin)\n==============================\n\n![GitHub last commit](https://img.shields.io/github/last-commit/migangqui/spring-email-api?style=for-the-badge)\n![Maven Central](https://img.shields.io/maven-central/v/com.github.migangqui/spring-email-api-java?style=for-the-badge)\n\n\nIt is an API for Java and Kotlin to send emails with Spring. To add to your project...\n\n### Add dependency to Maven or Gradle:\n\nFor Java:\n\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.migangqui\u003c/groupId\u003e\n\t\u003cartifactId\u003espring-email-api-java\u003c/artifactId\u003e\n\t\u003cversion\u003e${currentVersion}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n```groovy\nimplementation 'com.github.migangqui:spring-email-api-java:${currentVersion}'\n```\n\nFor Kotlin:\n\n```xml\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.github.migangqui\u003c/groupId\u003e\n\t\u003cartifactId\u003espring-email-api-kotlin\u003c/artifactId\u003e\n\t\u003cversion\u003e${currentVersion}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n```groovy\nimplementation 'com.github.migangqui:spring-email-api-kotlin:${currentVersion}'\n```\n\n```${currentVersion}``` is ```1.2.0```\n\n### Add the following properties in application.yml of the project\n\n```yaml\nspring:\n  mail:\n    default-encoding: UTF-8\n    host: # for example: smtp.gmail.com\n    username: # Your email\n    password: # Your email pass\n    port: # SMPT port, for exaple: 25, 587\n    properties:\n      mail:\n        transport.protocol: smtp\n# Optional properties\n#        smtp:\n#          ssl:\n#            trust: '*'\n#          auth: true\n#          starttls:\n#            enable: true\n#            required: true\n```\n\n## Enable async\n\nAdd ```@EnableAsync``` annotation in your Spring Application class to enable async send method.\n\n## Component scan\n\nIt's not necessary add the package to component scan with this new version.\n\n## How to use\n\nYou have to inject ```EmailSender``` as dependency in your Spring component. The service provide these methods:\n\n##### Java\n```java\npublic interface EmailSender {\n    SendEmailResult send(Email email);\n        \n    Future\u003cSendEmailResult\u003e sendAsync(Email email);\n}\n```\n##### Kotlin\n```kotlin\ninterface EmailSender {\n    fun send(email: Email): SendEmailResult\n\n    fun sendAsync(email: Email): Future\u003cSendEmailResult\u003e\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigangqui%2Fspring-email-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmigangqui%2Fspring-email-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmigangqui%2Fspring-email-api/lists"}