title: can I use a nodejs library in an html file?
body: <p>Within an HTML file I would like to use the library <code>nodemailer</code> to send emails. To do this with nodejs I simply put <code>var nodemailer = require('nodemailer')</code> at the top of the script component of my HTML file however <code>require</code> is not a valid function in HTML. When I try to do this I get the error <code>ReferenceError: require is not defined</code>. I would like to know how to use this library from HTML, or if this is not possible, what a good alternative is so that I can send emails from an HTML file.</p>