I'm trying to set up a cron job to test sending email but it keeps failing.
My app.yaml file looks like this: application: nameofmytestapp version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: .* script: main.app - url: /tasks/sendtestemail script: sendtestemail.app libraries: - name: webapp2 version: "2.5.2" My cron.yaml file looks like this: cron: - description: every 5 minutes test email url: /tasks/sendtestemail schedule: every 5 minutes My sendtestemail.py file looks like this: #!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # send a test email from Google App Engine import webapp2 from google.appengine.api import mail mail.send_mail("[email protected]", "[email protected]", "Test email from GAE", "Testing...done!") Obviously, myusername is actually my gmail and app engine username and emailrecipient is the email account I'm attempting to send a test email to. Any ideas where I'm going wrong here? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
