I want to programmatically send email from my personal email account using Gmail API and PHP. The reason for asking this question is:
I cannot use SMPT, because I'm using A2 Hosting which bans shared hosting plans from connecting to a remote SMPT server.
It seems the only solution is using Gmail API. I can see many similar tutorials. However, they are mostly not for using personal email account(i.e., most of these methods ask for users' authorization and send emails on their behalf). My case is different: I just want to send emails using my personal gmail account.
So far, I have just found one relevant tutorial on this topic http://sahmwebdesign.com/gmail-api-via-service-accounts/ . But it seems I have to have a G-Suite account for this method, which means additional cost to me.
Is there anyway to get service accounts working with a normal gmail user account. If not how can I use the gmail api without having to login all the the time.