feat: send test mail (#7968)

# Which Problems Are Solved

- Zitadel doesn't have a way to test SMTP settings either before
creating a new provider or once the SMTP provider has been created.
- Zitadel SMTP messages can be more informative for usual errors

# How the Problems Are Solved

- A new step is added to the new/update SMTP provider wizard that allows
us to test a configuration. The result is shown in a text area.
- From the table of SMTP providers you can test your settings too.
- The email address to send the email is by default the email address
for the logged in user as suggested.
- Some of the SMTP error messages have been changed to give more
information about the possible situation. For example: could not contact
with the SMTP server, check the port, firewall issues... instead of
could not dial

Here's a video showing this new option in action:


https://github.com/zitadel/zitadel/assets/30386061/50128ba1-c9fa-4481-8eec-e79a3ca69bda

# Additional Changes

Replace this example text with a concise list of additional changes that
this PR introduces, that are not directly solving the initial problem
but are related.
For example:
- The docs explicitly describe that the property XY is mandatory
- Adds missing translations for validations.

# Additional Context

- Closes #4504
This commit is contained in:
Miguel Cabrerizo
2024-06-20 21:51:42 +02:00
committed by GitHub
parent 00b5e55565
commit 3635320ce8
51 changed files with 1362 additions and 46 deletions

View File

@@ -53,11 +53,24 @@ Errors:
NotFound: SMS конфигурацијата не е пронајдена
AlreadyActive: SMS конфигурацијата е веќе активна
AlreadyDeactivated: SMS конфигурацијата е веќе деактивирана
SMTP:
NotEmailMessage: пораката не е Email Message
RequiredAttributes: предметот, примачите и содржината мора да бидат поставени, но некои или сите се празни
CouldNotSplit: не може да се подели домаќинот и портата за поврзување со smtp
CouldNotDial: не можев да контактираме со SMTP-серверот, да ја провериме портата, проблеми со заштитен ѕид...
CouldNotDialTLS: не можев да контактираме со SMTP-серверот користејќи TLS, проверете ја портата, проблеми со заштитен ѕид...
CouldNotCreateClient: не можев да креирам smtp клиент
CouldNotStartTLS: не можеше да започне tls
CouldNotAuth: не можев да додадам smtp auth, проверете дали и корисникот и лозинката се точни, дали се точни, можеби вашиот провајдер бара метод за автетика што не е поддржан од ZITADEL
CouldNotSetSender: не може да се постави испраќач
CouldNotSetRecipient: не може да се постави примач
SMTPConfig:
TestPassword: Лозинката за тестот не е пронајдена
NotFound: SMTP конфигурацијата не е пронајдена
AlreadyExists: SMTP конфигурацијата веќе постои
AlreadyDeactivated: SMTP конфигурацијата е веќе деактивирана
SenderAdressNotCustomDomain: Адресата на испраќачот мора да биде конфигурирана како прилагоден домен на инстанцата.
TestEmailNotFound: Адресата на е-пошта за тест не е пронајдена
Notification:
NoDomain: Не е пронајден домен за пораката
User: