Skip to main content
Module

x/smtp/smtp.ts>SmtpClient

SMTP implements for deno
Latest
class SmtpClient
import { SmtpClient } from "https://deno.land/x/smtp@v0.7.0/smtp.ts";

Constructors

new
SmtpClient(unnamed 0?: SmtpClientOptions)

Properties

private
_conn: Deno.Conn | null
private
_content_encoding: ContentTransferEncoding
private
_reader: TextProtoReader | null
private
_writer: BufWriter | null

Methods

private
_connect(conn: Deno.Conn, config: ConnectConfig)
private
assertCode(
cmd: Command | null,
code: number,
msg?: string,
)
private
parseAddress(email: string): [string, string]
private
readCmd(): Promise<Command | null>
private
writeCmd(...args: string[])
send(config: SendConfig)