A simple ruby script to check Email

I’m a Ruby beginner and I want to know, how can I write a simple Ruby script that check the Username and Password of an email like Gmail and if the Username and Password is correct then show a message.
I’m thankful if anyone help me as simple as possible.

Thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs