PiRSquared17 / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

Sending email is broken #244

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
1. Start up the dev site from a new unzip.
2. Navigate to http://localhost:8000/account/register/ and create an account.

What is the expected output? What do you see instead?
You receive a dump:
NotImplementedError at /account/register/

This class/method is not available.

Request Method:     POST
Request URL:    http://localhost:8000/account/register/
Exception Type:     NotImplementedError
Exception Value:    

This class/method is not available.

Exception Location: 
/home/me/source/google_appengine/google/appengine/api/apiproxy_rpc.py in
CheckSuccess, line 111
Python Executable:  /usr/local/bin/python2.5
Python Version:     2.5.4

What version of the product are you using? On what operating system?
Running latest app-engine-page on Fedora 11.  GAE version 1.2.7.

Original issue reported on code.google.com by julianok...@gmail.com on 3 Dec 2009 at 10:06

GoogleCodeExporter commented 9 years ago
I've found a workaround which is to have it fail silently.

def email_out():
    email = EmailMessage("subject", "message", "sender@domain.com",
"recipient@domain.com")
    email.send(fail_silently=True)

Original comment by julianok...@gmail.com on 7 Dec 2009 at 7:37

GoogleCodeExporter commented 9 years ago
Haven't tried it myself, but it was recommended in another issue the following:

I realized after submitting this that the registration form works correctly if 
the
server is started with

python manage.py runserver --enable_sendmail

Maybe a more explicit message should be given in the event of an
SMTPServerDisconnected exception?

Cheers,

Original comment by sebastie...@gmail.com on 7 Dec 2009 at 8:07