dumre0707 / googlepersonfinder

Automatically exported from code.google.com/p/googlepersonfinder
Apache License 2.0
0 stars 0 forks source link

validate email addresses on input, catch errors on send #81

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We should validate email addresses on input (grep for create_original).

We should catch mail exceptions 
(http://code.google.com/appengine/docs/python/mail/exceptions.html) in 
send_mail.py and log them.

From the logs:
Invalid recipient address
Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 703, in __call__
    handler.post(*groups)
  File "/base/data/home/apps/s~googlepersonfinder/release-18-62b488b8857f.354181518057200390/send_mail.py", line 27, in post
    body=self.request.get('body'))
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py", line 390, in send_mail
    message.send(make_sync_call)
  File "/base/python_runtime/python_lib/versions/1/google/appengine/api/mail.py", line 894, in send
    raise ERROR_MAP[e.application_error](e.error_detail)
BadRequestError: Invalid recipient address.

Original issue reported on code.google.com by lschumac...@google.com on 2 Nov 2011 at 7:49

GoogleCodeExporter commented 9 years ago

Original comment by r...@google.com on 21 Oct 2013 at 2:29

GoogleCodeExporter commented 9 years ago
Issue 117 has been merged into this issue.

Original comment by r...@google.com on 21 Oct 2013 at 2:39