Fixed prepare message with html footer

Change-Id: I6c95d3d30aed40aea56bca78f2ad4188b43cef9b