Changed to follow their new API setup which asks for the Content-Type of the connection to be of "application/json"
Changed to follow their new API setup which asks for the Content-Type of the connection to be of "application/json"

Also changed the response checking to be a bit more robust when dealing with an error.

joebeeson/mailer