E-mail generator functioning