Matéo - Hey! I'm trying to configure emails wit...
Hey! I'm trying to configure emails with BREVO, but it seems like it's not taking into account the environment variables:
When I try to reset the password, it says it has been sent, but I don't receive anything and it doesn't display any errors.
![No description](https://cdn.answeroverflow.com/1245739096429826178/image.png)
26 Replies
Did you send a message in french before or did I hallucinate? 😄
If you start LLDAP with verbose true, it'll dump the config that it loaded at the top of the logs. Very useful to debug whether you have the right env variables
Yes the automatic translation did not work x)
Oh, and verbose will also tell you what's happening with the email, whether it actually tried to send it or not. If the username was not found it doesn't send the email but doesn't tell you about it (since that would leak the existing users or their emails)
And the logs from trying to reset a password?
![No description](https://cdn.answeroverflow.com/1245742414115770410/image.png)
Erf, that's a cache hit 😄
It shouldn't be a get request
But a post
Can you add a comment to issue 887? Or create a new issue, it's technically a different problem
and why at one point did I still get an error when clicking on the button?
If the server attempts to send an email but fails, you get an error in the frontend. After that it probably cached the error (or a success) and then just returned the cached value
In the meantime you can clear your cache to get a proper response
![No description](https://cdn.answeroverflow.com/1245744839518064701/image0.jpg)
Solution
That usually means that you have starttls with the SSL port or vice versa
SMTP configuration is very annoying because for them TLS means starttls, but its completely different, it's actually ssl
What should I do?
Your SMTP configuration is incorrect. You have the protocol and port mixed up. Ideally, switch everything to SSL
(the SMTP encryption for LLDAP will be TLS, but the port should be the one listed for SSL)