๐ Bug: Forgot Password Email Not Being Delivered
๐ Description
While trying to create and log in as a merchant, the "Forgot Password" functionality appears broken โ it says the email is sent (success response), but no actual email is received.
๐ Reproduction Steps
- Seeded the database to create an admin user.
- Used admin to approve a new merchant.
- Note: No password was set for the merchant at creation.
- Tried to reset the merchant password using the โForgot Passwordโ flow.
- Received success message: โEmail sentโ (see network tab screenshot).
- But no email arrived in the mailbox.
๐ง Observations
- The
resetPWDToken field is getting created in the DB for the merchant user, so backend logic partially works.
- The environment is set up with valid Mailgun API keys and domain (see
.env screenshot).
- No errors in browser dev tools or backend logs.
- Network request to forgot password endpoint returns 200 OK.
๐ธ Screenshots
๐งช Environment (.env file):

โ
Network Response (Email Sent Message):

๐ง๐ซ The Mail Gun
โ What Help I Need
- Can someone confirm if the Mailgun integration is working as expected?
- Where to check logs or failures in email delivery? (e.g., backend logs or Mailgun dashboard?)
- What is the recommended way to set an initial password for a merchant, especially if created via admin with no password field?
- Any known issues with the email template or sending function?
๐ป Environment
- OS: Windows 11
- Browser: Edge
- Backend Service: Node.js (with Mailgun integration)
- Mail Provider: Mailgun
โ
Additional Suggestions (Optional)
- Add an option to manually set a password during merchant approval by admin.
- Improve error handling or email delivery confirmation in backend logs.
๐ Bug: Forgot Password Email Not Being Delivered
๐ Description
While trying to create and log in as a merchant, the "Forgot Password" functionality appears broken โ it says the email is sent (success response), but no actual email is received.
๐ Reproduction Steps
๐ง Observations
resetPWDTokenfield is getting created in the DB for the merchant user, so backend logic partially works..envscreenshot).๐ธ Screenshots
๐งช Environment (.env file):
โ Network Response (Email Sent Message):
๐ง๐ซ The Mail Gun
โ What Help I Need
๐ป Environment
โ Additional Suggestions (Optional)