decideSendMailorNot method added, commented codes are remvoed