public final class SendGridMailer {
public static GridResponse send(GridEmail email, SendGrid sg) throws ClientProtocolException, IOException {
if (!email.validate() || !sg.validate())
return new GridResponse(false, "");
HttpClient client = new DefaultHttpClient();
try {
HttpPost post = new HttpPost(SendGrid.SENDGRID_BASE_API_URL + "mail.send.json");
List<NameValuePair> nvps = new ArrayList<NameValuePair>();