First step in simplifying email functions.