__author__ = 'sagi' from google.appengine.ext import db from models.User import User from google.appengine.api import mail def is_user_token_valid(token): query = User.all() query.filter("seToken = ", token) for u in query.run(): return True return False def send_validation_email(token, email, name): message = mail.EmailMessage(sender="SE-Hub Support ", subject="SE-Hub Activate Account") message.to = email message.body = """ Dear """+name+""": To Activate your SE-Hub Account please click on the link below:
http://se-hub.appspot.com/api/validatation/confirm/"""+token+""" to access you virtual class. Please let us know if you have any questions. SE-Hub (c) 2015 niptop Team. """ message.html = """

Hey """+name+"""- Just one More Step...

Dear """+name+""":

To Activate your SE-Hub Account please click on the link below:
http://se-hub.appspot.com/api/validatation/confirm/"""+token+"""

to access you virtual class.


Please let us know if you have any questions.
SE-Hub (c) 2015 niptop Team. """ message.send()