{"id":21470821,"url":"https://github.com/iamdanielyin/mailto","last_synced_at":"2025-03-17T06:45:01.755Z","repository":{"id":89264512,"uuid":"113544376","full_name":"iamdanielyin/mailto","owner":"iamdanielyin","description":"A simple send mail tool.","archived":false,"fork":false,"pushed_at":"2017-12-08T10:25:15.000Z","size":6801,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T16:14:06.334Z","etag":null,"topics":["cli","go","mail","tool"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/iamdanielyin.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-08T07:18:47.000Z","updated_at":"2023-02-16T21:53:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"37801db0-6552-401e-a5be-9b1bf4c21751","html_url":"https://github.com/iamdanielyin/mailto","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdanielyin%2Fmailto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdanielyin%2Fmailto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdanielyin%2Fmailto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iamdanielyin%2Fmailto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iamdanielyin","download_url":"https://codeload.github.com/iamdanielyin/mailto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243988956,"owners_count":20379649,"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","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":["cli","go","mail","tool"],"created_at":"2024-11-23T09:29:22.759Z","updated_at":"2025-03-17T06:45:01.735Z","avatar_url":"https://github.com/iamdanielyin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mailto\n\nA simple send mail tool.\n\n## Config\n\n按实际情况编辑`mailto.json`文件：\n\n```json\n{\n    \"host\": \"smtp地址\",\n    \"port\": \"端口号\",\n    \"username\": \"SMTP登录账号\",\n    \"password\": \"SMTP登录密码\",\n    \"from\":\"发件人\",\n    \"contentType\": \"内容类型\"\n}\n```\n\n\u003e注意：`mailto.json`文件名不能修改，且运行时必须与执行文件同目录；`contentType`的格式为`text/plain`、`text/html`等。\n\n配置示例（163免费版企业邮箱）：\n\n```json\n{\n    \"host\": \"smtp.ym.163.com\",\n    \"port\": \"25\",\n    \"username\": \"system@test.com\",\n    \"password\": \"123456\",\n    \"from\":\"System \u003csystem@test.com\u003e\",\n    \"contentType\": \"text/plain\"\n}\n```\n\n## Args\n\n\u003e 抄送人参数为可选，多收件人或抄送人通过英文逗号`,`分隔；`build`目录下为编译好的可执行文件，直接使用即可，也可自行编译。\n\n```shell\nmailto \"邮件标题\" \"邮件内容\" \"收件人\" [\"抄送人\"]\n```\n\n## Usage\n\n```shell\n./mailto Hello 我是内容 test@xxx.com\n./mailto Hello 我是内容 \"Sam Zhang \u003ctest@xxx.com\u003e\"\n./mailto Hello 我是内容 \"Sam Zhang \u003ctest@xxx.com\u003e\" \"Jack Li \u003ctest@xxx.com\u003e\"\n./mailto Hello 我是内容 \"test1@xxx.com,test2@xxx.com\" \"Jack Li \u003ctest@xxx.com\u003e\"\n./mailto Hello 我是内容 \"test1@xxx.com,test2@xxx.com\" \"Jack Li \u003ctest3@xxx.com\u003e,Wu Wang \u003ctest4@xxx.com\u003e\"\n./mailto Hello \"`cat test.log`\" \"Sam Zhang \u003ctest@xxx.com\u003e\" \"Jack Li \u003ctest@xxx.com\u003e\"\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdanielyin%2Fmailto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiamdanielyin%2Fmailto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiamdanielyin%2Fmailto/lists"}