Working email system. Slightly modified from normal use for testing.