Skip to content

landuci/dynmail

Repository files navigation

dynmail

A modern and dynamic Email SDK written in TypeScript
Learn more »

Installation · Usage · Contribution ·


Installation

npm install dynmail # bun, pnpm, yarn

Usage

import { dymail, resend, sender } from 'dynmail'

const mail = dymail({
  providers: [resend()],
  senders: [
    sender({
      name: 'Support',
      from: 'support@myapp.com'
    })
  ]
})

await mail.send({
  to: 'johndoe@email.com',
  subject: 'Welcome to MyApp',
  body: '<h1>Welcome to MyApp</h1>'
})

To learn more about the usage, check out the documentation.

Contribution

Contributions are welcome! Specifically, you can help with:

  • Adding new providers
  • Improving the documentation
  • Fixing bugs (or opening issues)

License

This project is licensed under the MIT License.

About

A modern and dynamic Email SDK written in TypeScript

Resources

Stars

Watchers

Forks

Packages

No packages published