Skip to content

hywn/sjjj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

sjjj

an SMTP library? written with Deno standard library

example

import smtp_connect from './sjjj.js'

// connect to server
const server = await smtp_connect('smtp.gmail.com')

// authenticate
await server.auth('username')('password')

// write email
const msg =
`From: me <a@gmail.com>
To: you <b@gmail.com>
Subject: I like pizza

pizza is delicious`

// send email
await server.send('a@gmail.com')('b@gmail.com')(msg)

// finish using server
server.quit()

features

  • can send email
  • can be manually extended with provided communicator and standard_communicator functions
  • has comments
  • is one file under 150 lines long

notes

  • only works with SSL (no STARTTLS)
  • you have to write the whole (including headers) email on your own

About

barebones SMTP in Deno

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published