#Nuxt Module for transactional email with EU-infrastructure

4 messages · Page 1 of 1 (latest)

astral plover
#

Hi Nuxters nuxt

I've built my first Nuxt Module for Lettermint, a transactional email provider based in Europe. Lettermint offers a FREE plan that allows you to send up to 300 emails per month. With this module, you can send transactional and broadcast emails directly from your app or website.

nuxt : https://nuxt.com/modules/lettermint
lettermint : https://lettermint.co

loud yoke
#

Hey @astral plover I'm trying out Lettermint right now with the nuxt module.

Following the getting started steps I ran into an issue that my /api/lettermint/send.post.ts was complaining about missing properties (from, to, etc.), while I'm using the example :

// server/api/send.post.ts
import { sendEmail } from '#imports'

export default defineEventHandler(async () => {
  return await sendEmail({
    from: '[email protected]',
    to: '[email protected]',
    subject: 'Welcome',
    html: '<h1>Welcome!</h1>',
    tags: ['welcome']
  })
})

Turns out that the module adds its own api/lettermint/send.post.ts endpoint on runtime, overwriting the one defined above.
Maybe it's useful to add an option to disable this behaviour, I'm not a big fan of the module adding endpoints to my app.

Other than that everything looks great and I'm looking forward to using Lettermint

astral plover