Emails
Email mechanics are a pillar for creating engagement with your users.
Last updated
Email mechanics are a pillar for creating engagement with your users.
Last updated
Loops is a great tool for collecting mails, sending transactional mails (think user action like SIgnIn) and even more like marketing mails or newsletter handling.
Create an account on Loops.
On your Dashboard go to Settings
> API
and Generate Key
Paste it to your .env
file
Create a Transactional ID in Transactional
> New, this will be the mail your users receive when they SignIn.
Customize your email and Publish it, paste the Publish
> transactionalId
value into your .env
file:
Set your DNS Records on Settings
> Domain
> View records from your registrar (Cloudflare, NameCheap, Gandi...)
DirectoryFast automatically add all the signed up users to your contact list.
If you want to update or modify this behavior, go to the /api/mailing/signin/route.ts file:
The newsletter feature let visitors subscribe to your newsletter with or without signing up.
It adds those visitors to the contact list with the "subscribed" value set to "true".
To modify this, go to the /api/mailing/subscribe/route.ts file: