{"id":37030092,"url":"https://github.com/aowubulao/neo-mail","last_synced_at":"2026-01-14T03:39:03.553Z","repository":{"id":55599553,"uuid":"241307157","full_name":"aowubulao/neo-mail","owner":"aowubulao","description":"一个简单的Java mail 邮件库，支持抄送、密送、Html邮件等功能","archived":false,"fork":false,"pushed_at":"2020-12-19T01:47:41.000Z","size":30,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T00:11:57.448Z","etag":null,"topics":["java","mail"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aowubulao.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-18T08:16:59.000Z","updated_at":"2022-12-12T17:45:18.000Z","dependencies_parsed_at":"2022-08-15T04:01:10.545Z","dependency_job_id":null,"html_url":"https://github.com/aowubulao/neo-mail","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aowubulao/neo-mail","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aowubulao%2Fneo-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aowubulao%2Fneo-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aowubulao%2Fneo-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aowubulao%2Fneo-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aowubulao","download_url":"https://codeload.github.com/aowubulao/neo-mail/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aowubulao%2Fneo-mail/sbom","scorecard":{"id":201182,"data":{"date":"2025-08-11","repo":{"name":"github.com/aowubulao/neo-mail","commit":"d1d230177b32cf3344734f476c5dbd64357dd7d7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/21 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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T22:52:40.949Z","repository_id":55599553,"created_at":"2025-08-16T22:52:40.950Z","updated_at":"2025-08-16T22:52:40.950Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":["java","mail"],"created_at":"2026-01-14T03:39:02.924Z","updated_at":"2026-01-14T03:39:03.535Z","avatar_url":"https://github.com/aowubulao.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Neo-Mail\n\n一个学习性质的邮件库。\n\n支持群发，抄送、密送。支持发送Html及Html模板的邮件。\n\n基于Socket套接字编写，简洁、运行速度快。\n\n## 快速开始\n\n**· Maven坐标**\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.neoniou\u003c/groupId\u003e\n    \u003cartifactId\u003eneo-mail\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.1\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n**· 使用实例**\n\n```java\n/**\n * 可以通过 properties文件读取配置\n */\n@Before\npublic void readConfig() {\n    Properties props = new Properties();\n    InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"mail.properties\");\n    try {\n        props.load(is);\n        username = props.getProperty(\"username\");\n        password = props.getProperty(\"password\");\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}\n\n/**\n * 发送简单文本邮件\n */\n@Test\npublic void sendTextTest() {\n    NeoMail neoMail = new NeoMail();\n    try {\n        neoMail.config(MailSmtp.QQ, username, password)\n                .subject(\"这是一封测试简单文本邮件\")\n                .from(\"Neo\")\n                .to(\"me@neow.cc\")\n                .text(\"这是内容\")\n                .send();\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}\n\n/**\n * 发送简单 Html邮件\n */\n@Test\npublic void sendHtmlTest() {\n    NeoMail neoMail = new NeoMail();\n    try {\n        neoMail.config(MailSmtp.QQ, username, password)\n                .subject(\"这是一封测试简单Html邮件\")\n                .from(\"Neo\")\n                .to(\"me@neow.cc\")\n                .html(\"\u003ch1\u003e标题\u003c/h1\u003e\u003cdiv style=\\\"color: blue\\\"\u003e内容\u003c/div\u003e\")\n                .send();\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}\n\n/**\n * 发送 Pebble模板的 Html邮件\n */\n@Test\npublic void sendPebbleTest() {\n    NeoMail neoMail = new NeoMail();\n    try {\n        //使用 Pebble\n        PebbleEngine engine = new PebbleEngine.Builder().build();\n        PebbleTemplate compiledTemplate = engine.getTemplate(\"test.html\");\n\n        Map\u003cString, Object\u003e context = new HashMap\u003cString, Object\u003e();\n        context.put(\"number\", \"1234\");\n\n        Writer writer = new StringWriter();\n        compiledTemplate.evaluate(writer, context);\n\n        String html = writer.toString();\n\n        //发送邮件\n        neoMail.config(MailSmtp.QQ, username, password)\n                .subject(\"这是一封测试Pebble邮件\")\n                .from(\"Neo\")\n                .to(\"me@neow.cc\")\n                .html(html)\n                .send();\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}\n\n/**\n * 群发邮件，包括抄送和密送\n */\n@Test\npublic void sendCcAndBccTest() {\n    NeoMail neoMail = new NeoMail();\n    try {\n        neoMail.config(MailSmtp.QQ, username, password)\n                .subject(\"这是一封测试抄送密送的邮件\")\n                .from(\"Neo\")\n                .to(\"mail1\", \"mail2\")\n                .cc(\"mail3\", \"mail4\")\n                .bcc(\"mail5\", \"mail6\")\n                .text(\"这是内容\")\n                .send();\n    } catch (IOException e) {\n        e.printStackTrace();\n    }\n}\n```\n\n\n\n### Pebble中的test.html\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n   \u003cmeta charset=\"UTF-8\"\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n   \u003cdiv\u003e\n        \u003ch1\u003e这是一封测试Html的邮件\u003c/h1\u003e\n        \u003cdiv style=\"font-size: 16px; color: gray\"\u003e\n            如果你能顺利地看到数字：\u003cspan style=\"color: #409EFF\"\u003e{{ number }}\u003c/span\u003e\n            \u003cbr\u003e\n            那么表示程序成功运行了\n        \u003c/div\u003e\n   \u003c/div\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faowubulao%2Fneo-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faowubulao%2Fneo-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faowubulao%2Fneo-mail/lists"}