hoangvvo / nextjs-mongodb-app

A Next.js and MongoDB web application, designed with simplicity for learning and real-world applicability in mind.
https://nextjs-mongodb.now.sh/
MIT License
1.54k stars 289 forks source link

Verify Email Endpoint Missing SendGrid Message Subject Returns 500 #107

Closed TechSavagery closed 3 years ago

TechSavagery commented 3 years ago

Describe the bug Verify Email returns a 500.

Could not send email: Bad Request Bad Request (400) The subject is required. You can get around this requirement if you use a template with a subject defined or if every personalization has a subject defined. subject http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.subject

To Reproduce Steps to reproduce the behavior:

  1. Create Account
  2. Go To Profile
  3. Go To Edit Profile
  4. Click Verify Email
  5. See Error

Expected behavior Email verification message sent to the user

Screenshots Verify Email Error

Desktop (please complete the following information):