ts-quick-smtp

Barebones smtp server in TypeScript

Usage no npm install needed!

<script type="module">
  import tsQuickSmtp from 'https://cdn.skypack.dev/ts-quick-smtp';
</script>

README

ts-quick-smtp is designed to quickly set up a local SMTP server for development / testing basic email services. It is not designed with any kind of robustness or scalability in mind. If you need either / both of those then consider something like mailtrap.io maybe?

This partially implements the RFC 821 standard for mail transfer; which is now obsolete and has since been succeeded by RFC 2821

Usage

  import startServer from 'ts-quick-smtp'
  // OR
  const startServer = require('ts-quick-smtp')

  const PORT = 2525
  startServer(PORT) // SMTP server should start running

There is no authentication / secure connection. As mentioned before, this is for very basic testing.

Test

npm test

Build

npm run build

When this package is complete, an accompanying desktop / web application will be made available for easy access to emails.

System.out.println("Cheers!")