Help me create a plugin

I want to create a plugin to be able to receive and send emails or better yet have access to gmail without leaving my CRM, all the plugins I found are paid, so I’m looking for help on that side, I’m seriously thinking about creating a plugin for this myself , I can’t buy it because I’m in Angola and if anyone could help I would really appreciate it