Exemple #1
0
  def post(self):
    email = self.request.get('email')
    tech  = self.request.get('tech')
    if tech == None:
      tech = ''
    candidate = LimitedBetaCandidate(email=email, tech=tech)
    candidate.put()
    
    body = """
Hey buddies,

CrashKit limited beta program signup:

His/her e-mail address:  %(email)s
He/she is interested in: %(tech)s

Please visit http://%(host)s/admin/beta/ to invite this user.
""" % dict(email=candidate.email, host=self.request.host, tech=candidate.tech)
    mail.send_mail_to_admins('*****@*****.**', '[CrK] New Limited Beta User', body)
    
    self.response.out.write("Thanks a lot! We'll e-mail you an invitation code soon.")