[#1778] Create a valid OutgoingMessage factory

Work on #1778