Re:EmailJS – Send emails directly from JavaScript
by mattkrea on Wednesday February 04, 2015 @07:47PM
(#9001093)
What value does this provide on top postageapp's api? I have to imagine most companies would (read:should) standardize on one provider.
[ Parent
| on HN ]
Re:EmailJS – Send emails directly from JavaScript
by sashagim on Thursday February 05, 2015 @10:21AM
(#9003618)
Hey Matt, I'm one of the founders. All existing APIs require using a secret key, which you obviously wouldn't want to share in your front-end code. We overcome this by allowing sending only predefined templates, so for a "Share with a friend" feature you'd create a template called "share", and your call would look like -
EmailJS.send("share",{"to": "[email protected]","message":"You have to check this out!"})
This should prevent using our service for spamming, and we'll also offer some tools like CAPTCHA image, or rate limiting, to deal with spam/abuse.Let me know if you have any further questions!
Re:EmailJS – Send emails directly from JavaScript
by jozan on Wednesday February 04, 2015 @08:02PM
(#9001147)
I'm not the author of EmailJS but it doesn't require any backend where as PostageApp does.