Fixed prepare message with html footer

Change-Id: I3f3a7ed5c2d6f5279d2ef231acf9cf9279c043e6