This is easily reproducible.  I've filed a Bug:
http://code.google.com/p/app-engine-patch/issues/detail?id=244

On Dec 3, 1:51 am, Julian Yap <[email protected]> wrote:
> I'm getting an error when sending an email.  It works but appengine
> when deployed says 'There was an error while handling your request.'
>
> Template code:
> from django.core.mail import EmailMessage
>
> def email_out(contact_name):
>     email = EmailMessage('Hello', 'Body goes here',
> '[email protected]',
>             ['[email protected]', '[email protected]'],
> ['[email protected]'],
>             headers = {'Reply-To': '[email protected]'})
>     email.send()
>
> This is the output from the console:
> INFO     2009-12-03 11:45:06,374 mail_stub.py:84] MailService.Send
> INFO     2009-12-03 11:45:06,375 mail_stub.py:85]   From:
> [email protected]
> INFO     2009-12-03 11:45:06,375 mail_stub.py:88]   To:
> [email protected]
> INFO     2009-12-03 11:45:06,375 mail_stub.py:88]   To:
> [email protected]
> INFO     2009-12-03 11:45:06,375 mail_stub.py:92]   Bcc:
> [email protected]
> INFO     2009-12-03 11:45:06,375 mail_stub.py:95]   Reply-to:
> [email protected]
> INFO     2009-12-03 11:45:06,375 mail_stub.py:97]   Subject: Hello
> INFO     2009-12-03 11:45:06,376 mail_stub.py:100]   Body:
> INFO     2009-12-03 11:45:06,376 mail_stub.py:101]     Content-type:
> text/plain
> INFO     2009-12-03 11:45:06,376 mail_stub.py:102]     Data length: 14
> ERROR    2009-12-03 11:45:06,380 signals.py:9] Exception in request:
> Traceback (most recent call last):
>   File "/home/me/work/aep-me/common/zip-packages/django-1.1.zip/django/
> core/handlers/base.py", line 92, in get_response
>   File "/home/me/work/aep-me/common/zip-packages/django-1.1.zip/django/
> contrib/auth/decorators.py", line 78, in __call__
>   File "/home/me/work/aep-me/emailer/views.py", line 89, in form2
>     email_out('test')
>   File "/home/me/work/aep-me/emailer/views.py", line 45, in email_out
>     email.send()
>   File "/home/me/work/aep-me/common/zip-packages/django-1.1.zip/django/
> core/mail.py", line 245, in send
>   File "/home/me/work/aep-me/common/zip-packages/django-1.1.zip/django/
> core/mail.py", line 139, in send_messages
>   File "/home/me/work/aep-me/common/zip-packages/django-1.1.zip/django/
> core/mail.py", line 165, in _send
>   File "/home/me/source/google_appengine/google/appengine/api/
> mail.py", line 711, in send
>     make_sync_call('mail', self._API_CALL, message, response)
>   File "/home/me/source/google_appengine/google/appengine/api/
> apiproxy_stub_map.py", line 72, in MakeSyncCall
>     apiproxy.MakeSyncCall(service, call, request, response)
>   File "/home/me/source/google_appengine/google/appengine/api/
> apiproxy_stub_map.py", line 266, in MakeSyncCall
>     rpc.CheckSuccess()
>   File "/home/me/source/google_appengine/google/appengine/api/
> apiproxy_rpc.py", line 111, in CheckSuccess
>     raise self.exception
> NotImplementedError: This class/method is not available.

--

You received this message because you are subscribed to the Google Groups 
"app-engine-patch" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/app-engine-patch?hl=en.


Reply via email to