🎉 SUCCESS: Your email configuration is now working correctly!
Users will automatically receive verification emails when they register.
EMAIL_SERVICE=Gmail
EMAIL_USER=manognasamayam@gmail.com
EMAIL_PASS=tpfqytthmezrpdwc
EMAIL_FROM=manognasamayam@gmail.com- Spaces Removed: The App Password was updated to remove spaces (
tpfq ytth mezr pdwc→tpfqytthmezrpdwc) - Tested Successfully: Email configuration has been verified and is working
When users register:
- They fill out the registration form
- The system creates their account with
is_verified = 0 - The system automatically sends a verification email to their address
- Users click the verification link in the email
- Their account is updated to
is_verified = 1 - They can now log in
To verify everything is working:
- Register a new user account through the web interface
- Check the email address for a verification message
- Click the verification link to activate the account
- Log in with the verified account
- Your App Password is now properly configured
- The system is using secure practices for email verification
- User data is stored safely in the database
If you encounter any issues:
- Check that your server is running
- Look for any error messages in the console
- Verify that the email address used for registration is correct
Congratulations! Your email verification system is now fully functional.
If you can't find "Gmail" in the app list, follow these specific steps:
-
Sign in to your Google Account
-
Navigate to Security Settings
- Click on "Security" in the left navigation panel
-
Enable 2-Step Verification (if not already enabled)
- Scroll down to "2-Step Verification" and click on it
- Follow the prompts to set up 2FA if it's not already enabled
-
Generate App Password
- Scroll down to "App passwords" (under "2-Step Verification")
- Click on "App passwords"
-
Select App and Device
- Under "Select app," choose "Mail" (not "Gmail" - this is the correct option)
- Under "Select device," choose "Other (Custom name)"
- Enter "Campus Bridge" as the custom name
- Click "Generate"
-
Copy and Use the Password
- You'll see a 16-character password displayed
- Copy this password (without spaces)
- Use it in your .env file
- Make sure 2-Step Verification is enabled first
- Try refreshing the page
- Try using a different browser
- This should always be available
- Make sure you're not selecting a pre-defined device option
- Make sure you're copying all 16 characters
- Ensure there are no spaces in the password
- Double-check that you're using the App Password, not your regular password
Once you have your App Password, update your .env file like this:
# Email Configuration
# For Gmail, you need to generate an App Password: https://myaccount.google.com/apppasswords
EMAIL_SERVICE=Gmail
EMAIL_USER=manognasamayam@gmail.com
EMAIL_PASS=abcdefghijklmnop # Your 16-character App Password (no spaces)
EMAIL_FROM=manognasamayam@gmail.comAfter updating your .env file:
- Restart your server
- Register a new user account
- Check the email address for a verification message
- Click the verification link to activate the account
If you continue to have issues with Gmail, you can use other email services:
EMAIL_SERVICE=hotmail
EMAIL_USER=your-email@outlook.com
EMAIL_PASS=your-password
EMAIL_FROM=your-email@outlook.comEMAIL_SERVICE=yahoo
EMAIL_USER=your-email@yahoo.com
EMAIL_PASS=your-password
EMAIL_FROM=your-email@yahoo.comIf you're still having trouble:
- Take a screenshot of the App Passwords page
- Check that 2-Step Verification is definitely enabled
- Try using an incognito/private browser window