Can we automate two way auth login

i want to do login with two way auth process-

1 Normal login with user name and password
2.Have to take PIN from received email.

Its possible to automate if yes how? Can anyone please help me.

Well, you can do this if you have the time to automate the email reading as well… just some websites can take time to send those emails, but you can sure do this.