Skip to content

Forgot Password emails won't send because of hardcoded "from_email" #1816

@ckravit

Description

@ckravit

In the src/apps/profiles/views.py line 372 it has:

 from_email = "[email protected]"

This makes is so it does not use the DEFAULT_FROM_EMAIL in the env file when doing a Forgot Password. New Sign-up verification emails work just fine, but not Forgot Password emails.

Note, in the src/apps/profiles/helpers.py line 18 it has:

from_email = from_email if from_email else settings.DEFAULT_FROM_EMAIL

By commenting out line 372 in the views.py, it works as it should for me, using the DEFAULT_FROM_EMAIL in the env file. Is there a different way I should have fixed this on my system? Is there a reason that's hardcoded?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions