Is it possible to interact with Gmail using AJAX (Javascript)?

I would like to create my own interface for gmail, programmatically interacting with the actual Gmail service and processing all requests on my service until gmail itself.

The user will have to log in to his gmail account, after which my application should be able to interact with the gmail service.

Is there an API for Javascript that would allow me to do this?

Any other related feedback is also welcome. Thanks.

Update: one site that may have done what I'm trying to do will be otherinbox.com unless they proxy all email through their own servers (this is what I don't want to do, as I want people to interact with gmail directly through the Javascript API).

+4
source share
3 answers

If you can do whatever you want as a browser plugin on top of Gmail, tracking and monitoring what is happening, you can take a look at this. He will not do what you ask, but he will take you somewhere along the way.

Gmailr

Unfortunately, you probably need a server. Even if you can work around issues between domains, the Gmail interface is mostly built dynamically with JavaScript when the page loads. Thus, the names of JavaScript functions will change literally all the time.

Almost everyone does something like what you describe (we provide an alternative Gmail interface, as well as emailga ) this route. I also know the OtherInbox guys, and they have a server component that uses the IMAP interface for most of their magic.

+4
source

Check out the Gmail API .

I think you can work with him, although I have not explored it in detail.

hope this helps.

+2
source

I think you need to create a custom mail server that can connect to gmail using pop3 or imap or smtp . on the other hand, I'm sure ajax requests cannot be cross domains, but php can do this. so you need a php file through which you can access gmail through pop3 | imap | smtp or ajax. but only javascript cannot do this.

+2
source

Source: https://habr.com/ru/post/1338622/


All Articles