Emails

I didn't want to restrict users to use a specific email provider so Supersaas comes with a unified email sending composable that works with both Resend, Useplunk, Sendgrid & Postmark.

Use it to send transaction emails, welcome emails, password reset emails etc.

Resend

One of the best email providers I have used.

Plunk

Payments platform that handles taxes as well.

Paddle

An alternative to Stripe and Lemonsqueezy.

The useEmail() composable

You can use the useEmail() composable to send emails. It has the same interface for all email providers.

useEmail('resend').send({ to: '[email protected]', subject: 'Test', html: 'Test' })

Actions available

MethodParametersReturns
send() options: { from: string, to: string | string[], subject: string, html?: string, text?: string } Promise void