Keycloak Email(SMTP) configuration
Requirements: Mailhog ,Keycloak (running)
- Mailhog :
Download the Mailhog from the below github page, go to the URL and download the version for your operating system.
Run the Mailhog first and we can see the following output on console in windows operating system, SMTP is running on localhost with port number :1025 and serving on localhost:8025
2. Let us go to Keycloak and login via admin and go to Realm that you want to set the email and then click on the Realm settings → Email we can see fields to set but before that we need set the email address for admin ,
So go to users →select admin → and add Email and click Save button
Now add the following details. Realm settings → Email
Click Save and click on the Test the connection Button , now we get an email from info@example.de to admin@example.com , we can see this on browser by entering the mailhog serving host address which is localhost:8025
Details are configured in email tab , That’s it .