N
N
Nick_Apex2017-02-04 01:36:20
JavaScript
Nick_Apex, 2017-02-04 01:36:20

Implementing sending logs from google chrome extension?

Hi friends. There was a need to send logs from the google chrome extension, i.e. through JavaScript. I googled that this can only be implemented if you have your own server. So, is there really no service that would allow you to do this operation using their servers? I don’t really understand AJAX (as well as in JS in general), but I would like to somehow add such an opportunity to my project. If someone has ready-made solutions, articles or something like that - share, I will be grateful!
ps ̶Н̶е̶т̶ ̶n̶i̶ch̶e̶g̶o̶ ̶n̶e̶v̶o̶z̶m̶o̶zh̶n̶o̶g̶o̶ ̶i̶ ideally, of course, if a message will be sent to my mail directly from the extension))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2017-02-04
@Nick_Apex

https://www.emailjs.com/docs/api-reference/install...
But it's better to have your own server. At least place the script on a free hosting.

N
Nwton, 2017-02-04
@Nwton

The fastest way: sign up for free hosting and send requests to php.

xhr = new XMLHttpRequest();
xhr.open('POST', 'http://site.com/?data=' + data, true);
xhr.send();
if($_REQUEST['data'])log(...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question