Can I use nodemailer in browser?

前端 未结 1 934
感情败类
感情败类 2020-12-20 03:59

I\'ve created a simple react redux app (using webpack) with a contact form which when the user clicks submit I want to generate and se

相关标签:
1条回答
  • 2020-12-20 04:15

    node.js is for server side JavaScript, and allows you to do many things that can't be done in a browser.

    Sending email is not something that can be done in the sandbox provided by a browser, beyond the limited capabilities of mailto links which can basically pop up the user's email client with some links filled in.

    You need to implement server side code to do this, triggered by some action from the client, which could be node.js and nodemailer.

    0 讨论(0)
提交回复
热议问题