Thursday, January 31, 2019

Configure gmail to use as Email in Keycloak Realm

Keycloak allows us to use my built-in user related features, such as User registration, login etc.
Some of those need an email, such as verify email, forget password etc. Here I with share how to configure a Gmail as your email in Keycloak realm.
(If you want described explanation please read https://www.keycloak.org/docs/latest/server_admin/index.html#_email )

Goto Email on your Realm Setting.

Use Below common configurations.

  • Host: smtp.gmail.com
  • Port: 465
Now you have to Give your email to 


  • From
  • Username

And Password to the relevant field

Look Below image.


After that Please remember to click the Save button. Then click Test Connection to check whether the email is working properly. You can see a test email from keycloak in the Email inbox.