3
votes

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.

1
The comment is about the kind of mail address, which can be used. But you always have to register this address in app engine to use it as a sender. - voscausa
The reason I interpreted as implying that I would not need to register that exact email address as an administrator is that the document linked to above lists four bullet points of type of emails, and one of them is the "address of a registered administrator". This implies that the 4th one of "any valid receiving address of a domain account" means it is not registered. - jacob
Bottom line, I do not want to create another Google Apps user just to send email from "[email protected]". I guess I may need to use AWS SES with Boto to get that flexibility. - jacob
You do not have to register it as an administrator. You can use the viewer role. - voscausa
I mean I do not want to have to create a Google Apps user (whatever role it gets registered as) just to send email. - jacob

1 Answers

2
votes

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.