Test your emails in Fastify
How to test your emails in your Fastify applications.
As developers, we always look for ways to improve our fastify products. To do so, we are constantly looking for ways to provide more value to our users and improve their experience.
Simply sending Emails is key ✨
Mailcatch is an excellent tool for testing emails. You can inspect and debug emails in dev, staging, and QA environments before sending them to recipients in production.
Setting up Mailcatch
- Sign up for a free Mailcatch.app.
- Create your first inbox.
- Head to settings and copy your smtp credentials.
Code Snippets
Fastify + Nodemailer
Nodemailer is an easy to use module to send e-mails with Node.js:
const transport = nodemailer.createTransport({
host: "sandbox-smtp.mailcatch.app",
port: 2525,
auth: {
user: "*************",
pass: "*************",
},
});