Week 7

Project: Ticket Tracking System

Sending emails

Design document

Technical interview

Back end Track

How to send emails

Sending emails is hard. You need to understand how the email protocol works and write an application to do so. Even if you managed to build such application, your emails can easily find themselves in the spam folder of you recipients.

This why using an external service can save you a lot of work. Luckily there are many services that will send the email for you and give you an easy to use HTTP API.

Resend

resend.com has a free tier that can send up to 100 emails per day. It has a very simple HTTP API to use.

Here is a simple guidance how to use it

  1. Register for free: https://resend.com/signup
  2. Generate your API key. (Choose API Keys on the left menu)
  3. Check out the API docs to learn how to send an email: https://resend.com/docs/api-reference/introduction
  4. Test by sending an email from Postman or curl.
  5. Integrate the API calls in your code

<aside> 💡

You can use an AI to generate a nice HTML template to send in your emails

</aside>

<aside> ❗

Important Limitation

Due to security reasons, without a verified domain you will not be able to send an email to any address. You will be only able to send an email to your own address or to any @resend.dev email. For this project, adding a verified domain is not required.

</aside>


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.