Hi Nale
Please check below the following links,
https://docs.moodle.org/25/en/Google_Apps_Integration#Block:_Gmail_block
https://github.com/cthernandez/moodle-google-apps/tree/master/blocks/gmail
https://docs.moodle.org/24/en/Google_Apps_Integration#Gmail_Block
Kathir