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-konfiguration hittades inte
AlreadyActive: SMS-konfiguration redan aktiv
AlreadyDeactivated: SMS-konfiguration redan avaktiverad
SMTP:
NotEmailMessage: meddelandet är inte EmailMessage
RequiredAttributes: Ämne, mottagare och innehåll måste anges men några eller alla är tomma
CouldNotSplit: kunde inte dela värd och port för anslutning till smtp
CouldNotDial: kunde inte kontakta SMTP-servern, kontrollera porten, brandväggsproblem...
CouldNotDialTLS: kunde inte kontakta SMTP-servern med TLS, kontrollera porten, brandväggsproblem...
CouldNotCreateClient: kunde inte skapa smtp-klient
CouldNotStartTLS: kunde inte starta tls
CouldNotAuth: kunde inte lägga till smtp auth, kontrollera om både din användare och lösenord är korrekta, om de är korrekta kanske din leverantör kräver en auth-metod som inte stöds av ZITADEL
CouldNotSetSender: kunde inte ställa in avsändare
CouldNotSetRecipient: kunde inte ange mottagare
SMTPConfig:
TestPassword: Lösenordet för testet hittades inte
NotFound: SMTP-konfiguration hittades inte
AlreadyExists: SMTP-konfiguration finns redan
AlreadyDeactivated: SMTP-konfiguration redan avaktiverad
SenderAdressNotCustomDomain: Avsändaradressen måste sättas som kundanpassad domän på instansen.
TestEmailNotFound: E-postadressen för testet hittades inte
Notification:
NoDomain: Ingen domän hittades för meddelandet
User:
@@ -1340,4 +1353,3 @@ Action:
PreUserinfoCreation: Före skapande av användarinformation
PreAccessTokenCreation: Före skapande av åtkomsttoken
PreSAMLResponseCreation: Före skapande av SAMLResponse