Include docType and header in Mail

- including Unit-tests