fix send_mail access bug view.py