models and mailsender.py are updated