title: How to send email using sendgrid in google cloud endpoints?
body: <p>I'm trying to send email using Sendgrid with Google Cloud Endpoints. Here is the reference: <a href="https://cloud.google.com/appengine/docs/java/mail/sendgrid" rel="nofollow">https://cloud.google.com/appengine/docs/java/mail/sendgrid</a></p>
  
  <p>However, after copy <code>Sendgrid.java</code> to the src directory of the app, when I try to build the project, the error message says:</p>
  
  <blockquote>
    <p>package com.google.appengine.labs.repackaged.org.json does not exist</p>
  </blockquote>
  
  <p>It seems this package is not available to endpoints, but only app engine.</p>
  
  <p>So, how can I send email from Google Cloud Endpoints?</p>