updated sendMultiPartMail to throw an InvalidArguementException on error.