Skip to main content
Module

x/smtp/README.md

SMTP implements for deno
Go to Latest
File

Deno SMTP mail client

Build Status GitHub GitHub release (Deno)

Example

import { SmtpClient } from "https://deno.land/x/smtp@v0.3.0/mod.ts";

const client = new SmtpClient();
await client.connect({
  host: "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,maybe HTML"
});

await client.close();