title: Python GAE Problems Sending Email
body: <p>I'm trying out GAE and having a little trouble sending email from my application in both development and production. I understand the development server needs a little configuration first, but production should be send email. There are no errors that I can see viewing the console (I start the server via terminal window), and none reported in the production application.</p>
  
  <p>The code: </p>
  
  <pre><code>def contactSend():
  message = mail.EmailMessage()
  message.sender = "myaddress@gmail.com"
  message.to = "myaddress@gmail.com"
  message.subject = "Test email from python"
  message.body = "This is the test"
  message.send()
  </code></pre>
  
  <p>What I have checked so far: 
  Code appears to be correct.
  -Sender (and to) address have administrator level permissions of the project.
  -Project is configured as Python 2.7 (some issues on 2.5 I guess).
  -My spam folder.</p>
  
  <p>I'm sure I'm likely missing something simple as I'm very new to GAE. Any ideas would be greatly appreciated.</p>
  
  <p>Edit: I've also tried mail.sendmail: </p>
  
  <pre><code>mail.send_mail(sender="myaddress@gmail.com",
            to="myaddress@gmail.com",
            subject="This is the test 1124pm",
            body="TEST!")
  </code></pre>
  
  <p>No luck there either. Possible that I need to register a domain or set up a Google Apps account maybe?</p>
  
  <p>Edit2 11:52am: I've tried a check_valid_email to be sure and that came back true. I saw the "send_mail_to_admins" function and gave that a shot assuming it might be less restricting and possibly work, but nothing there either.</p>
  
  <p>Edit3: I don't know if it helps but here's the request handler: </p>
  
  <pre><code>class contactSend(webapp2.RequestHandler):
      def post(self):
          self.response.headers['Content-Type'] = 'text/html'
          contactSend()
          self.response.out.write("sent! ")  
  </code></pre>