Django PasswordResetForm not sending emails

I have the following function manages adding a new employee to the selected workshop,

def add_employee(request, shop_number):
    workshop = get_object_or_404(Workshop, shop_number=shop_number)
    context = {"workshop": workshop}
    
    if request.method == "POST":
        form = ProfileForm(request.POST, files=request.FILES)
        if form.is_valid():
            employee = form.save(commit=False)
            employee.added_by = request.user
            
           # Create the user associated with the employee with an unusable password
            employee_user = get_user_model().objects.create_user(
                username=request.POST['email'],
                email=request.POST['email'],
                password=None,  # No password is set
                first_name=request.POST['first_name'],
                last_name=request.POST['last_name']
            )
            employee_user.set_unusable_password()
            employee_user.save()

            employee.user = employee_user
            employee.save()

            # Add the new employee to the workshop's employees
            workshop.employees.add(employee)

            # Conditionally add the employee to groups based on their role
            if employee.is_craftman:
                group, created = Group.objects.get_or_create(name='craftmen')
                group.user_set.add(employee_user)
            elif employee.is_salesman:
                group, created = Group.objects.get_or_create(name='salesmen')
                group.user_set.add(employee_user)


            # Send a password reset email to the user
            form = PasswordResetForm({'email': employee_user.email})
            print(employee_user.email)
           
            if form.is_valid():
                request.current_site = get_current_site(request)
                form.save(
                    request=request,
                    use_https=request.is_secure(),
                    email_template_name='registration/password_reset_email.html',
                    subject_template_name='registration/password_reset_subject.txt',
                    from_email=settings.EMAIL_HOST_USER,
             
                )
            else:
                print(form.errors)
                print(form)


            messages.success(request, f"You have successfully added {
                             employee}")
            return redirect('manage_employees', shop_number=shop_number)
        else:
            context['form'] = form
    else:
        context['form'] = ProfileForm()        

    return render(request, 'employees/employees_form.html', context)

The code correctly prints the employee user’s email, but the user does not receive the password reset email. Other parts of the code send emails successfully, but this section and the default password reset view both fail to deliver emails. I have confirmed that the specific email exists in the database. Could anyone help identify potential issues preventing the reset email from being delivered?

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật