{"id":13672947,"url":"https://github.com/zengming00/node-sendmail-lite","last_synced_at":"2026-03-06T07:32:25.324Z","repository":{"id":57372043,"uuid":"81332596","full_name":"zengming00/node-sendmail-lite","owner":"zengming00","description":"a 100% js sendmail, it is very simple useful, but only support send html formart email, and it does not depend anything, 最简单最容易使用并且不依赖环境的nodejs发送邮件包","archived":false,"fork":false,"pushed_at":"2017-10-09T08:50:29.000Z","size":13,"stargazers_count":7,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T02:38:03.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/zengming00.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":"2017-02-08T13:27:12.000Z","updated_at":"2019-04-05T02:17:40.000Z","dependencies_parsed_at":"2022-08-30T14:50:49.956Z","dependency_job_id":null,"html_url":"https://github.com/zengming00/node-sendmail-lite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zengming00/node-sendmail-lite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengming00%2Fnode-sendmail-lite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengming00%2Fnode-sendmail-lite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengming00%2Fnode-sendmail-lite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengming00%2Fnode-sendmail-lite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zengming00","download_url":"https://codeload.github.com/zengming00/node-sendmail-lite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zengming00%2Fnode-sendmail-lite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30165627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-08-02T09:01:59.544Z","updated_at":"2026-03-06T07:32:25.280Z","avatar_url":"https://github.com/zengming00.png","language":"TypeScript","readme":"# node-sendmail-lite\na 100% js sendmail, it is very simple useful, but only support send html formart email, and it does not depend anything\n\n**It can running in any platform**\n\n# install \nnpm install sendmail-lite --save\n\n\n# demo\n\n```js\nvar sendMail = require('sendmail-lite').sendMail;\n\nvar $content = '\\\n\u003ctable style=\"width:100%;height:100%;\"\u003e\\\n    \u003ctr\u003e\u003ctd style=\"text-align: center;\"\u003e\\\n    \u003cdiv style=\"display: inline-block; padding:30px; color:red; \"\u003e\\\n    \u003cimg src=\"https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png\"/\u003e\\\n    \u003ch1\u003ehelloworld，这是一封测试邮件,' + new Date() + '\u003c/h1\u003e\\\n\u003ca style=\"text-decoration: none; color: #ffffff\" href=\"http://serverjs.cn\" target=\"_blank\"\u003e\\\n    \u003cdiv style=\"font-family:\\'微软雅黑\\';font-size: 18px; text-decoration: none; white-space: nowrap; color: #ffffff; padding-bottom: 10px; text-align: center; padding-top: 10px; padding-left: 25px; margin: 0px; padding-right: 25px; background-color: #cc0001; border-radius: 3px\"\u003e马上激活 \u003c/div\u003e\\\n    \u003c/a\u003e\\\n    \u003c/div\u003e\\\n    \u003c/td\u003e\u003c/tr\u003e\\\n\u003c/table\u003e\\\n';\n\n// 如果你收不到邮件，那可能是被拦截了，（QQ邮箱-\u003e收件箱上面点右键-\u003e收件查询）\n// 只测试了163和QQ邮箱，测试时请反下面的邮箱地址换成你自己的\n// $to = \"15679700245@163.com\";\nvar $to = \"243786753@qq.com\";\n\nvar $senderName=\"这是发件人\";\nvar $sender=\"admin@zengming.me\";\nvar $subject=\"这是邮件标题\";\n\nsendMail($senderName, $sender, $to, $subject, $content, function (err) {\n    if(err) return console.log(err);\n    console.log('发送成功');\n});\n```\n# typescript support\n```typescript\nimport { sendMail } from 'sendmail-lite';\n```\n\n# can not receive mail ?\n\nBecause Mail is intercepted\n\n# License\nMIT\n\n\n\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengming00%2Fnode-sendmail-lite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzengming00%2Fnode-sendmail-lite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzengming00%2Fnode-sendmail-lite/lists"}