issue #21986: first light on serverside workflow emailing
issue #21986: create emails the way the client does it