News for hackers. Stuff that matters.
Re:MailerJS: Send email with client-side JavaScript by bcrescimanno on Friday February 24, 2012 @02:01AM (#3628306)
Flagging for an incredibly misleading topic / tagline. This isn't actually "sending email with client-side javascript;" it's simply a script that allows you to send a message to a service that will generate an email for you. Seriously, it's basically a scripted email form--how this at all interesting?
Re:MailerJS: Send email with client-side JavaScript by patsantre on Friday February 24, 2012 @04:54AM (#3628640)
You can also ask how HTML forms are interesting? (Answer is WuFoo)
Re:MailerJS: Send email with client-side JavaScript by wvl on Thursday February 23, 2012 @09:40PM (#3627766)
Interesting idea. This could be useful for signup and contact forms from a static website.

It's amusing to me that the contact link is just a mailto. Why not use MailerJS?

Re:MailerJS: Send email with client-side JavaScript by kijin on Thursday February 23, 2012 @10:10PM (#3627835)
> It's amusing to me that the contact link is just a mailto. Why not use MailerJS?

In case someone wants to complain that MailerJS doesn't work in their browser, I guess?

Re:MailerJS: Send email with client-side JavaScript by the_bear on Thursday February 23, 2012 @09:59PM (#3627806)
I don't see any pricing info on their site. If this is intended to be free for life, then I guess it's pretty nifty. But it would take about 30 minutes for any web developer to duplicate this functionality, so I hope they don't plan on charging for it.
Re:MailerJS: Send email with client-side JavaScript by chromedude on Thursday February 23, 2012 @10:17PM (#3627858)
It's hidden until you sign up: - Free - 5 emails/day - Basic ($5/month) - 50 emails/day - Big ($29/month) - 500 emails/day - Huge ($99/month) - 5000 emails/day
Re:MailerJS: Send email with client-side JavaScript by jorde on Thursday February 23, 2012 @11:01PM (#3627971)
That is pretty steep taking into account that even Postmark, which many consider expensive, charges only $1.50 per thousand emails. The basic plan is $3.33 for thousand and you're limited to specific daily limits... I usually don't complain about pricing but this just feels too much. Of course these two services are different but I chose Postmark as it's from the expensive end of email sending services. And one can replicate MailerJS in just one evening (when writing this there might already be a open source clone).

Enough with the whining... The main reason why I'm not a fan is that the pricing is hidden behind sign up and the site gives the impression that the service is free.

Re:MailerJS: Send email with client-side JavaScript by the_bear on Thursday February 23, 2012 @11:23PM (#3628023)
I don't see why you'd need to use a third party at all for this type of thing. Postmark is designed to increase email deliverability, but if you're only sending emails to yourself, that shouldn't really be an issue. It seems like good ol' sendmail would do the trick.

Agreed on the pricing though. Doesn't seem very honest.

Re:MailerJS: Send email with client-side JavaScript by toomuchtodo on Friday February 24, 2012 @12:04AM (#3628107)
Sendmail doesn't work if you're serving up your site statically from S3. Then again, their pricing is so ridiculous, its cheaper to just POST the email message via REST to a service to send the mail (Postmark, Sendgrid, AWS SES).

I'm not sure what this solution solves.

Re:MailerJS: Send email with client-side JavaScript by eli on Thursday February 23, 2012 @11:07PM (#3627980)
That really is apples and oranges.
Re:MailerJS: Send email with client-side JavaScript by jrockway on Thursday February 23, 2012 @09:27PM (#3627735)
You need to tell Mailer.js about your API key

What exactly stops me from stealing someone else's API key and using it to send spam? You can't trust the client.

Re:MailerJS: Send email with client-side JavaScript by wvl on Thursday February 23, 2012 @09:34PM (#3627748)
That was my first thought, however, from the docs:

MailerJS will send mail to the address you enter on your account page. You can't specify the receiver dynamically, as client-side JavaScript is publicly accessible by definition, and we want to protect you from spammers.

Why steal someone's api key just so you can send them email?

Re:MailerJS: Send email with client-side JavaScript by oconnore on Thursday February 23, 2012 @10:59PM (#3627970)
(not something I would do, but someone else would) To put them over their account limit.
Re:MailerJS: Send email with client-side JavaScript by nilved on Thursday February 23, 2012 @09:54PM (#3627798)
You need to input the domains you'll be running Mailer.js on[1], so perhaps API keys only work on those domains? This is just from preliminary reading, so I could be wrong. :)

[1] https://www.mailerjs.com/documentation

Re:MailerJS: Send email with client-side JavaScript by true_religion on Thursday February 23, 2012 @11:28PM (#3628035)
If you're trying to protect from hacking via HTTP Referrer info, you're doing it wrong.

Anyone can fake HTTP Referer info, and if they're going to the trouble of stealing an API key then they're not just a passing bot.

Re:MailerJS: Send email with client-side JavaScript by thomasjoulin on Friday February 24, 2012 @02:36AM (#3628361)
This is terrible. Overpriced web service that sends emails to a single address, 20-lines script calling the API using jQuery $.ajax (why the dependency ?!) and sends the request with GET instead of PUT or POST...
Re:MailerJS: Send email with client-side JavaScript by JRambo on Friday February 24, 2012 @04:36AM (#3628591)
Indeed. Why would you pay for, and be dependent on, a service like this when you could quite easily make something like this? Running on your own server where you have full control.
Re:MailerJS: Send email with client-side JavaScript by riffraff on Friday February 24, 2012 @02:54AM (#3628386)
Isn't GET in place to allow cross site ajax?
Re:MailerJS: Send email with client-side JavaScript by tauv on Friday February 24, 2012 @04:48AM (#3628618)
This is great but ridiculously overpriced that 1 months delivery is how much I would tack onto a clients bill for building a customer form or implementing this service.

This is just bad value for money

Re:MailerJS: Send email with client-side JavaScript by le_isms on Thursday February 23, 2012 @09:24PM (#3627726)
Cool. I can think of many reasons it would be bad to have a mailer on the client side, but a big pro w/ this is that you can send mail easily when you only have file access to say, a client's website.
Re:MailerJS: Send email with client-side JavaScript by mardiros on Friday February 24, 2012 @04:10AM (#3628536)
Oh, collect email in an html form ?
Re:MailerJS: Send email with client-side JavaScript by drivebyacct2 on Thursday February 23, 2012 @09:20PM (#3627714)
Why email? It seems like an inefficient method to deal with bug reports. Not to mention it seems like this would be really open to abuse.
Re:MailerJS: Send email with client-side JavaScript by cleverjake on Thursday February 23, 2012 @09:22PM (#3627717)
My guess would be because email is universal, bugtracking platforms are not. It would be easier for me to script a mail filter to auto create bug tickets than wait for them to support my specific kind.
Re:MailerJS: Send email with client-side JavaScript by zackattack on Thursday February 23, 2012 @09:57PM (#3627803)
I agree, it's overpriced. I would rather just put a snippet in that tracked javascript errors somehow, and also grabbed all of the user's browser information etc. And bonus points if it takes a screenshot (doable with HTML5) and copies over everything from console.log. Would really help with debugging.

P.S. They should have put the pricing information on the home page. Didn't realize they were a YC company either.

Re:MailerJS: Send email with client-side JavaScript by untog on Thursday February 23, 2012 @10:22PM (#3627873)
I would rather just put a snippet in that tracked javascript errors somehow, and also grabbed all of the user's browser information etc.

That's a worse user experience, though. And you have no opportunity to ask follow-up questions, or even say "hey, it's fixed!". That kind of customer service goes a long way.

Re:MailerJS: Send email with client-side JavaScript by zackattack on Friday February 24, 2012 @02:21AM (#3628346)
That's a worse user experience, though.

How? Worse than what?

Re:MailerJS: Send email with client-side JavaScript by riffraff on Friday February 24, 2012 @02:57AM (#3628394)
is taking a screenshot really doable with html5? last time I took a look at this it didn't seem possible.
Re:MailerJS: Send email with client-side JavaScript by zackattack on Friday February 24, 2012 @03:08AM (#3628412)
not exactly, but there are approximations like http://html2canvas.hertzen.com/
Re:MailerJS: Send email with client-side JavaScript by josscrowcroft on Friday February 24, 2012 @02:07AM (#3628318)
Open source it. I know, I know, but just do it. Charge for support or something.