{"id":13673255,"url":"https://github.com/manyuanrong/deno-smtp","last_synced_at":"2025-08-21T17:31:46.065Z","repository":{"id":46187061,"uuid":"194101836","full_name":"manyuanrong/deno-smtp","owner":"manyuanrong","description":"SMTP implements for deno","archived":false,"fork":false,"pushed_at":"2024-05-29T23:51:11.000Z","size":37,"stargazers_count":80,"open_issues_count":17,"forks_count":26,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-30T20:06:19.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/manyuanrong.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":"2019-06-27T13:35:57.000Z","updated_at":"2024-11-01T16:45:37.000Z","dependencies_parsed_at":"2024-10-23T05:08:55.520Z","dependency_job_id":null,"html_url":"https://github.com/manyuanrong/deno-smtp","commit_stats":{"total_commits":28,"total_committers":12,"mean_commits":"2.3333333333333335","dds":0.5,"last_synced_commit":"58310f28bc00d82aacbe7bb190008fa8ae8f7227"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manyuanrong%2Fdeno-smtp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manyuanrong%2Fdeno-smtp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manyuanrong%2Fdeno-smtp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manyuanrong%2Fdeno-smtp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manyuanrong","download_url":"https://codeload.github.com/manyuanrong/deno-smtp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230523761,"owners_count":18239445,"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":[],"created_at":"2024-08-02T10:00:32.061Z","updated_at":"2024-12-20T02:06:34.729Z","avatar_url":"https://github.com/manyuanrong.png","language":"TypeScript","funding_links":[],"categories":["基础设施","Uncategorized","Modules"],"sub_categories":["JAM Stack/静态站点","Uncategorized","Online Playgrounds","Assistants","Mail"],"readme":"## Deno SMTP mail client\n\n[![Build Status](https://github.com/manyuanrong/deno-smtp/workflows/ci/badge.svg?branch=master)](https://github.com/manyuanrong/deno-smtp/actions)\n![GitHub](https://img.shields.io/github/license/manyuanrong/deno-smtp.svg)\n![GitHub release](https://img.shields.io/github/release/manyuanrong/deno-smtp.svg)\n![(Deno)](https://img.shields.io/badge/deno-1.0.0-green.svg)\n\n### Example\n\n```ts\nimport { SmtpClient } from \"https://deno.land/x/smtp/mod.ts\";\n\nconst client = new SmtpClient();\n\nawait client.connect({\n  hostname: \"smtp.163.com\",\n  port: 25,\n  username: \"username\",\n  password: \"password\",\n});\n\nawait client.send({\n  from: \"mailaddress@163.com\",\n  to: \"to-address@xx.com\",\n  subject: \"Mail Title\",\n  content: \"Mail Content\",\n  html: \"\u003ca href='https://github.com'\u003eGithub\u003c/a\u003e\",\n});\n\nawait client.close();\n```\n\n#### TLS connection\n\n```ts\nawait client.connectTLS({\n  hostname: \"smtp.163.com\",\n  port: 465,\n  username: \"username\",\n  password: \"password\",\n});\n```\n\n#### Use in Gmail\n\n```ts\nawait client.connectTLS({\n  hostname: \"smtp.gmail.com\",\n  port: 465,\n  username: \"your username\",\n  password: \"your password\",\n});\n\nawait client.send({\n  from: \"someone@163.com\", // Your Email address\n  to: \"someone@xx.com\", // Email address of the destination\n  subject: \"Mail Title\",\n  content: \"Mail Content，maybe HTML\",\n});\n\nawait client.close();\n```\n\n### Configuring your client\n\nYou can pass options to your client through the `SmtpClient` constructor.\n\n```ts\nimport { SmtpClient } from \"https://deno.land/x/smtp/mod.ts\";\n\n//Defaults\nconst client = new SmtpClient({\n  content_encoding: \"quoted-printable\", // 7bit, 8bit, base64, binary, quoted-printable\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanyuanrong%2Fdeno-smtp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanyuanrong%2Fdeno-smtp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanyuanrong%2Fdeno-smtp/lists"}