jiminssy
jiminssy

Reputation: 2431

How to send emails using Google App Engine Mail Service?

I want to be able to send emails out from my GAE app. My personal email is registered with the permission "Is Owner" I am using this as the from email following the example on this page. https://cloud.google.com/appengine/docs/java/mail/ I tried sending the email with my application deployed to GAE.

I get an error message and getting the following exception java.net.SocketException: Permission denied: Attempt to access a blocked recipient without permission.

I am just trying send a dummy email to test it out.

Also if I eventually get this working and I want to use some generic purpose email like [email protected], how do I achieve this?

Upvotes: 0

Views: 452

Answers (1)

Moshe Shaham
Moshe Shaham

Reputation: 15974

The problem is in the recipient's email. You are trying to send to a blocked address (probably something generic like [email protected]). Try changing the recipient's address to something else

As to your second question, you can only send email from admin emails or addresses ending in: @appid.appspotmail.com

So if you want to send from [email protected] you should add it to your admins of the apps (of course, the email must be a google account)

Upvotes: 2

Related Questions