Added date rfc822 supports, added exception handling on mail building