3

I have an app that is built only using react. It does not have a backend. Is it possible to send an email just from the react front end itself? Is there an api that would allow me to do that?

If this is not possible, all I really need to do is store data from a form somewhere I can access later. Is there an api that would allow me to do that without any backend using only react? Any help is really appreciated! Thanks in advance!

Parth Patel
  • 63
  • 1
  • 2
  • 5
  • 1
    Be careful when using front-end only. You will need to put some credentials in the code and they will be visible in the browser (Developer Tools). A back-end will hide that. Something like Azure Functions may solve your problem for free. – Miro J. Mar 16 '18 at 14:05

2 Answers2

5

React have nothing to do with sending emails because after all it is a library that provides ability to render UI, nothing more.

However you can send emails from client side by using any API that is available over internet, for example you can take a look at Gmail API.

Flying
  • 4,422
  • 2
  • 17
  • 25
0

ReactJs is a framework that is used to develop the user interface.There is no way to send the email by using Reactjs because email need server for that you can use Nodejs. Although, Gmail API is there to send an email.

Rohit Sinha
  • 233
  • 2
  • 3