views:

42

answers:

3

Hi,

My mail is regarding the option for receiving email to any address which looks like - [email protected] documented here: http://code.google.com/appengine/docs/python/mail/receivingmail.html

My questions are:

  1. Is there any restriction on the number of email addresses which can be created using the above format and used inside the application? As an example I may have a million users and could have some sort of a "in-mail" facility where each user is assigned a unique "xxx" id.

  2. Is there any limit on the number of emails which can be received by an address of the above format? I don't see any quota restrictions specified anywhere?

A: 

I can't see any mention of a maximum of email addresses you can have in the format string@ appid.appspotmail.com. But surely there must be some internal limit specified. I guess the appspotmail option is not meant to be used to create unique emails for each of your app's users (especially if you have a large number of users).

There are limits specified in the quotas, for example you can send mails to a maximum of 7,400,000 recipients a day, and you can make a maximum of 1,700,000 calls a day to the GAE Mail API (both limits apply only when billing is enabled). So if you had a million users, you probably would reach the API limit pretty soon when most of them would receive one or multiple emails.

tomlog
1. I would like to know the system limit, as only this will allow developers to decide what the receive mail API can be used for.2. There is no "Receive Email" API, nor is it anyway related to the Mail API, as a request handler is invoked when a mail is received. Hence the only quota applicable here will be the "Requests" quota.
demos
One could argue that the InboundMailHandler would be part of the Mail API, but the documentation about quotas around receiving mail is indeed not very clear.
tomlog
The way they describe it as if its just a URL where data will be posted from the email, thats why I mentioned the Requests quota. But i agree it's really ambiguous.
demos
+4  A: 

There's no limit to the number of email addresses you can send or receive email on. Incoming email is simply sent to your handler with the address preserved; no accounts get created, so there's no reason to limit the number of unique addresses. The system-wide quota limits on incoming mail, total requests, and calls to the mail API are the only ones that apply here.

Nick Johnson
Nick, what is the system-wide quota limit on incoming mail?
Drew Sears
Same question - what is the system wide limit for incoming email? also I have billing enabled, but do not see the limits appearing anywhere for incoming email.
demos
There is none. Incoming email will use up your HTTP request quota and incoming bandwidth quota, but besides that there's no limit.
Nick Johnson
+1  A: 

There is no limit on the number of addresses where your app can receive mail, or the number of emails it can receive.

App Engine does not persist the addresses you've used to receive mail; each inbound message is handled like an HTTP POST and then discarded. Sending a million emails to one address or a to million addresses will use the same resources.

The mail-related quotas apply to sent mail only. For CPU, bandwidth, etc., inbound mail draws from the same resource pool as your HTTP requests. There's no indication in the docs of any quota specific to inbound mail.

Drew Sears