Adding mime type to emails. This closes #23