There is an error in your coding.
You are assigning the formatted text to
message.Body
.
After the assignment is executed the
body
variable still contains the unformatted text. But later on you are again assigning the unformatted
body
variable to the
message.Body
If you replace this,
message.Body = String.Format(body, detailpageurl, imageurl, asin, String.Format("{0:0.#}", old_rating), String.Format("{0:0.#}", rating), oldtotalreview, total_review, price, mercname, manufacturer);
with this,
body = String.Format(body, detailpageurl, imageurl, asin, String.Format("{0:0.#}", old_rating), String.Format("{0:0.#}", rating), oldtotalreview, total_review, price, mercname, manufacturer);
It should work fine.