KO
|
EN
gitlite โ search
Search
#typescript
#ai-agents
#deepseek-harness
#dsh-plugin
#open-source
#ai
#claude-code
#cli
#windows
#codex
#developer-tools
#dsh
deno-smtp
โ 83
Open GitHub โ
SMTP implements for deno
Download README (.md)
Explore Similar Repositories
ngx-audio-player
:
A library for playing audio using HTML 5 audio for Angular 7/8/9/10/11/12/13/14/15/16.
blazor-wasm
:
Blazor and WebAssembly examples (part of a Blazor presentation)
tm
:
TriggerMesh CLI to work with knative objects
gatsby-starter-typescript-rebass-netlifycms
:
My default Gatsby setup. Includes rich MDX support.
PotentCodables
:
๐งช PotentCodables - A potent set of implementations and extensions to the Swift Codable system
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
deno-smtp
?
Download (.md)
## Deno SMTP mail client [](https://github.com/manyuanrong/deno-smtp/actions)    ### Example ```ts import { SmtpClient } from "https://deno.land/x/smtp/mod.ts"; const client = new SmtpClient(); await client.connect({ hostname: "smtp.163.com", port: 25, username: "username", password: "password", }); await client.send({ from: "mailaddress@163.com", to: "to-address@xx.com", subject: "Mail Title", content: "Mail Content", html: "<a href='https://github.com'>Github</a>", }); await client.close(); ``` #### TLS connection ```ts await client.connectTLS({ hostname: "smtp.163.com", port: 465, username: "username", password: "password", }); ``` #### Use in Gmail ```ts await client.connectTLS({ hostname: "smtp.gmail.com", port: 465, username: "your username", password: "your password", }); await client.send({ from: "someone@163.com", // Your Email address to: "someone@xx.com", // Email address of the destination subject: "Mail Title", content: "Mail Content๏ผmaybe HTML", }); await client.close(); ``` ### Configuring your client You can pass options to your client through the `SmtpClient` constructor. ```ts import { SmtpClient } from "https://deno.land/x/smtp/mod.ts"; //Defaults const client = new SmtpClient({ content_encoding: "quoted-printable", // 7bit, 8bit, base64, binary, quoted-printable }); ```