wger icon indicating copy to clipboard operation
wger copied to clipboard

Can't receive the verification email

Open Biasio opened this issue 1 year ago • 1 comments

Hi, I'm using the app from f-droid, the registration was fine, but when I press the "send verification email" it says that the email was sent successfully, but I receive no email. I tried doing the same thing from the browser, and I have the same result. Let me know of you need some more infos.

Biasio avatar Dec 07 '24 21:12 Biasio

I am just trying this out myself with docker compose and I see the same issue. If you are using docker compose, I believe you will need to create a custom .env file and include that in your compose override file. The README describes how to do this. In the .env file, you will need to set up the email parameters for your email provider.

# Email
# https://docs.djangoproject.com/en/4.1/topics/email/#smtp-backend
# ENABLE_EMAIL=False
# EMAIL_HOST=email.example.com
# EMAIL_PORT=587
# EMAIL_HOST_USER=username
# EMAIL_HOST_PASSWORD=password
# EMAIL_USE_TLS=True
# EMAIL_USE_SSL=False
FROM_EMAIL='wger Workout Manager <[email protected]>'

idahogray avatar Dec 24 '24 18:12 idahogray

Hey there @Biasio , I just got verification emails working and thought I'd share. Here's what I did:

  1. Clone the wger repo - this is important
  2. Before bringing up the compose file, go to the repository/config, and edit the prod.env file; this file has the contents that @idahogray mentioned
  3. If you are using gMail - you'll need to create an app password for your email in gmail - you can't use username/password anymore. Luckily, the app password works as a great stand-in in that field without requiring additional environment parameters. If you're using another provider, adapt the settings accordingly
  4. Find the email section and fill it out as following:
#
# Email
# https://docs.djangoproject.com/en/4.1/topics/email/#smtp-backend
ENABLE_EMAIL=True
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
[email protected]
EMAIL_HOST_PASSWORD=<account password or app password here>
EMAIL_USE_TLS=True
# EMAIL_USE_SSL=False
FROM_EMAIL='wger Workout Manager <[email protected]>'

The only thing I've noticed is that "FROM_EMAIL" field still shows the originating email, rather than the custom email set, but that's OK for self-hosted, I think.

Hope this helps!

kmanwar89 avatar Sep 21 '25 12:09 kmanwar89