I find the Google documentation quite confusing. Any good tutorials about this?
There are quite a few guides on how to use the Gmail API. The google document explains this pretty well, but it all depends on what you want. This website explains how to send a mail via your program.