It is always important to be able to communicate with users of a website. It may be potential clients who want to hire you or maybe just users who have feedback for you or want to leave you a nice comment.

There are different options you can take when it comes to communicating with users. You can try one of the following options:

  • Write your email address for users to send you an email.
  • Create a form to open up an email messenger.
  • Create a form that sends data directly to your email.

In this article, we will look at how to accomplish the third option.

We will create a contact form that sends an email directly to you. There is no need for a user to have to copy your email or open up a new window to send you an email. The user can type the data directly into the form and you will receive the message in your email when it is sent.

This contact form will be built using Next.js API routes and the SendGrid Mail Service API.

#nextjs

How To Create a Working Contact Form in Next.js
1.65 GEEK