I am using Django on GAE. On my local development server I have associated a django view function with email receiving address:
urlpatterns += patterns('',
url(r'^_ah/mail/(.*)', 'core.views.handle_email')
)
As far as I understand, core.views.handle_email now receives all of the incoming emails for my application. That actually works. I am able to see that it works by sending emails to my application from application console http://localhost:8080/_ah/admin/inboundmail. But this works only if I am logged in to my application. If I am not looged in, I cannot send any email from http://localhost:8080/_ah/admin/inboundmail. But I still need to test behavior of my application in this case.
So the exact question is: how do I test receiving emails when application is not logged in?
On App Engine (live), when an inbound mail is sent to your application, an admin login will be used to send the request, so I don’t think you need to worry about testing the “non-logged in” case.