Reputation: 884
I am rather desperate of a simple problem. I run a static site on Harp, Node powered static site server. On Harp’s docs there is a method of including externally served forms (via Woofoo). This could be simple (actually, I am not successful with that) but I think it is not elegant.
I have tried Nodemailer and it works like a charm when I am calling it from the CLI. However, I am not able to call it’s functions from inside the site > logically > browser is not able to call or use the node typical require function.
I am convinced there should be a simple hack how to do this. Any advice more than welcome!
I wish I was able to use it for a simple contact form.
Upvotes: 0
Views: 861
Reputation: 2150
To reiterate what some of the commenters pointed out, Nodemailer is a server-side Node.js module, which means it can’t run client-side using Harp or anything else.
That constraint for static sites has resulted in few services trying to fill this gap. We wrote the Wufoo integration as one option, since it’s entirely client-side (if there seemed to be something wrong with that page, feel free to open an issue on our docs and we’ll look into it).
Another good alternative I have been using more recently is Formspree, which is specifically for static sites. It might be closer to what you’re looking for, since it doesn’t require JS or an iframe.
Thoughtbot also builds a similar one called FormKeep, but it is only free while you are developing.
Upvotes: 0