How to automate forgot password field?

how can we automate services…
For Ex:
if user enter valid email id in forgot password field for resetting password…Reset password will go to third party login…
how can we automate this…??