Timeless
Timeless

Reputation: 7527

How to send email using sendgrid in google cloud endpoints?

I'm trying to send email using Sendgrid with Google Cloud Endpoints. Here is the reference: https://cloud.google.com/appengine/docs/java/mail/sendgrid

However, after copy Sendgrid.java to the src directory of the app, when I try to build the project, the error message says:

package com.google.appengine.labs.repackaged.org.json does not exist

It seems this package is not available to endpoints, but only app engine.

So, how can I send email from Google Cloud Endpoints?

Upvotes: 1

Views: 444

Answers (1)

Price
Price

Reputation: 2703

You would need to write the code for sending the email in the App Engine project and create an endpoint method containing this code. You can then call the endpoint method from a mobile or a Javascript client using Google Cloud Endpoints.

Upvotes: 1

Related Questions