Problems with users

Hello,

I installed Taiga using this page → Taiga 30min Setup - Taiga basics / Tutorials and Guides

I have been able to log in and import some test projects, but I am having the following problems:

  1. I can’t resend invitation or invite users:

My current SMTP settings:

Taiga’s SMTP settings - Variables to send Taiga’s emails to the users

EMAIL_BACKEND=smtp
EMAIL_HOST=smtp.google.com
EMAIL_PORT=587
EMAIL_HOST_USER=‘correo@gmail.com’
EMAIL_HOST_PASSWORD=contraseña
EMAIL_DEFAULT_FROM=‘noreply@gmail.com’
EMAIL_USE_TLS=True EMAIL_USE_SSL=False

I have also tried:

EMAIL_USE_TLS=False
EMAIL_USE_SSL=True
EMAIL_PORT=465

And:

EMAIL_BACKEND=console

Having the EMAIL_BACKEND section as “console” and using the command “mail.send_mail”, I send the message but it does not arrive at the destination mailbox.

  1. I have followed the guide and added the following lines but I can’t create users this way either:

Add to &default-back-environment environments
PUBLIC_REGISTER_ENABLED: “True”

Add to taiga-front service environments
PUBLIC_REGISTER_ENABLED: “true”

Hi @Adrian !

In order to understand what’s happening, I suggest two different tests.

  1. change smtp backend for console backend and test it. You should see the email in the console logs.

  2. create a script (python, node, go, choose your weapon) separated from taiga and try to send an email and check if the configuration works.

Cheers!

Hi @yami

I have completed the tests you requested. I respond to each section.

  1. I tried running the following command through the console and attempted to resend the invitation from the Taiga web page.
  • Console
./manage.py shell

from django.core import mail
mail.send_mail("Prueba","Prueba", "correo_origen@gmail.com", ["correo_destino@dominio.io"],
... fail_silently=False)

Outcome:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: Prueba
From: correo_origen@gmail.com
To: correo_destino@dominio.io
Date: Fri, 19 Jan 2024 13:05:11 -0000
Message-ID: <170566951142.97.14272301372843782765@7492ff798247>

Prueba
-------------------------------------------------------------------------------
1
>>>
  • Resend the invitation from the Taiga web page
-------------------------------------------------------------------------------
Content-Type: multipart/alternative;
 boundary="===============1847369697987220591=="
MIME-Version: 1.0
Subject: [Taiga] Invitation to join to the project 'Proyecto-Prueba'
From: correo_origen@gmail.com
To: correo_destino@dominio.io
Date: Fri, 19 Jan 2024 13:06:29 -0000
Message-ID: <170566958959.37.8976393786016899420@7492ff798247>

--===============1847369697987220591==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit

You, or someone you know, has invited you to Taiga

Hi! someone has sent you an invitation to join a project called Proyecto-Prueba in Taiga.
Taiga is an Open Source Agile Project Management Tool. There is no cost for you to be a Taiga user.

And now a few words from the jolly good fellow or sistren who thought so kindly as to invite you:

Acepta y entra

Accept your invitation to Taiga following this link:
http://taiga.dominio.ejemplo/invitation/4873ad90-b461-11ee-905d-0242c0a86e70

---
The Taiga Team

--===============1847369697987220591==
Content-Type: text/html; charset="utf-8"
MIME-Version: 1.0
  1. Script

If I run the script to send an email, I get the following error message.

smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. For more information, go to\n5.7.8  https://support.google.com/mail/?p=BadCredentials v2-20020a5d4a42000000b003392b1ebf5csm7509376wrs.59 - gsmtp')

I was looking for guides, and I found one that said that currently, Google does not allow certain modes of sending because they are less secure. To enable such emails, it is necessary to disable the feature called “Allow access for less secure apps.” in the Google account.

Enabling that feature, I am able to receive the email, but I don’t think it’s the best solution.

Yesterday, we tried creating an email on Hostinger, modified the EMAIL variables in the ‘.env’ file, and Taiga successfully sent the emails to invite users.

Thank you very much, and regards @yami :blush:.

3 Likes