Just to preface this, I'm a complete Node and back end beginner. I can install Node and Express and get a simple server going, and that's about it.So I'm trying to build a simple SPA. I will have a form where the user will be able to input their email and, if it verifies, will send an email to that email address. It's more complicated than that but that's the general idea.Assuming I can get the email set up with Nodemailer and Mailgun / Sendgrid / etc, how do I actually send it? What do I need to do from the client-side to pass the server the email address and send the email?My first instinct is to send through some JSON to an endpoint which has the email address + some extra data. The server grabs it, parses it and sends the email.Am I on right right track here? Any very simple guides for setting something like this up?
Submitted July 04, 2017 at 12:33AM by mazaer
No comments:
Post a Comment