Implemented retry for the send mail