[Chethan] Adding log to the send mail function