Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/denomailer/client/basic/connection.ts>SMTPConnection

A SMTP-Client implementation for deno (to send mails!)
Latest
class SMTPConnection
import { SMTPConnection } from "https://deno.land/x/denomailer@1.6.0/client/basic/connection.ts";

Constructors

new
SMTPConnection(conn: Deno.Conn, config: ResolvedClientOptions)

Methods

assertCode(
cmd: Command | null,
code: number,
msg?: string,
)
readCmd(): Promise<Command | null>
write(chunks: (string | Uint8Array)[])
writeCmd(...args: string[])
writeCmdAndAssert(code: number, ...args: string[])
writeCmdAndRead(...args: string[])
writeCmdBinary(...args: Uint8Array[])