small changes on email sending , bug fixed