Changed mail backend to celery and changed celery mail backend to django mail memory backend.