-3

Javascript learner here. I have a very simple static web page containing only html and javascript. The page visitor is asked to enter an integer of their choosing into a form and I'd somehow like to keep a record of each integer entered. My understanding is that it's not possible to make javascript write to a file on the server. However, I've read that it might be possible, via smtp.js, to make my javascript code send an email from my own gmail account to my own gmail account. Could this email contain the value entered? I'm not looking for code here, just some advice on the best approach to this problem or if what I want is impossible. (I'm unable to run anything dynamic like php on the server.)

Edit: My question was closed as a duplicate of 'How to send an email from JavaScript'. I'm not asking HOW to send an email, I'm asking if sending an email is the best coding solution to my particular problem.

reactive
  • 1
  • 1
  • `best coding solution` is opinion based, so question will be closed anyway, just another reason, email sending is not most commonly used method to preserve data, because it is less reliable (you can detect if email is sent, but cannot detect whether it is received), but if it works for you - go ahead, or you can use some of https://nobackend.org/solutions.html – Iłya Bursov May 14 '22 at 14:33

0 Answers0