jacob
jacob

Reputation: 2896

GAE: Send email from any arbitrary email address in Google Apps domain

Referring to the following document about sending email in Google App Engine: https://developers.google.com/appengine/docs/python/mail/sendingmail

It says that the email sender (i.e., From address) may be: Any valid email receiving address of a domain account, such as [email protected]. Domain accounts are accounts outside of the Google domain with email addresses that do not end in @gmail.com or @APP-ID.appspotmail.com.

This seems to be imply that as long as my domain mycompany.com is a Google Apps domain and I've added to my my Google Apps CPanel as a service, that I would be able to send an email from any arbitrary address that is not an existing user, such as: [email protected]. Note that I do not have the app's authentication type set up as "Google Apps Domain" but rather as "Google Accounts API".

However, this is not working as such. I am only able to send email if it is an existing Google Apps user and is registered with the app as an administrator.

Please clarify. Thanks.

Upvotes: 3

Views: 1197

Answers (1)

Peter Knego
Peter Knego

Reputation: 80340

You should continue reading right after the sentence you quoted:

Any valid email receiving address of a domain account, such as [email protected]. Domain accounts are accounts outside of the Google domain with email addresses that do not end in @gmail.com or @APP-ID.appspotmail.com. To send an email from an existing domain account, add the domain account as a Developer to your application using the Administration Console. The account is then sent an email with an invite to develop the application, which you must accept to add the account to the application.

So you still need to add the domain user under GAE Admin -> Permissions.

Upvotes: 2

Related Questions