simulates an email system