
## 🐛 Bug Report
Describe the bug
When a new user tries to register on Eduboard locally, the signup fails with the error:
"Failed to send verification email. Please check your email and try again."
The user is deleted from the database and registration never completes.
🔍 Root Cause
The server .env file has no email service credentials configured:
EMAIL_USER is missing
EMAIL_PASS is missing
SMTP_HOST / EMAIL_SERVICE is missing
The emailService.js has no fallback when these variables are absent, causing sendRegistrationVerificationEmail() to fail silently and return { success: false }.
✅ Expected Behavior
- Either registration should succeed with a clear message like "Email service not configured, please set up SMTP credentials"
- Or a
.env.example in the server/ folder should document the required email variables so contributors can set them up locally.
💡 Proposed Fix
- Add email credentials to
server/.env.example:
- Add a graceful fallback in
emailService.js when credentials are missing — log the OTP to console in development mode so local testing still works.
🖥️ Environment
- OS: Windows 11
- Node version: (run
node -v)
- npm version: (run
npm -v)
📁 Affected Files
server/services/emailService.js
server/.env.example
@KENZY004 pls assign me the issue under gssoc 2026
Describe the bug
When a new user tries to register on Eduboard locally, the signup fails with the error:
The user is deleted from the database and registration never completes.
🔍 Root Cause
The server
.envfile has no email service credentials configured:EMAIL_USERis missingEMAIL_PASSis missingSMTP_HOST/EMAIL_SERVICEis missingThe
emailService.jshas no fallback when these variables are absent, causingsendRegistrationVerificationEmail()to fail silently and return{ success: false }.✅ Expected Behavior
.env.examplein theserver/folder should document the required email variables so contributors can set them up locally.💡 Proposed Fix
server/.env.example:emailService.jswhen credentials are missing — log the OTP to console in development mode so local testing still works.🖥️ Environment
node -v)npm -v)📁 Affected Files
server/services/emailService.jsserver/.env.example@KENZY004 pls assign me the issue under gssoc 2026