The problem is you are adding new line at the end of the message so
if your message is
Message = "abcd #signature#";
the first code line
Message = Message + Environment.NewLine;
will result in
Message = "abcd #signature# + NewLine character"
and the second line
Message = Message.Replace("#Signature#",
obju.Signature);
will replace the signature before new line character hence end result will be:
Message = "abcd TheSignature + NewLine character"
Solution:
Modify above code like this:
Message = Message.Replace("#Signature#",
Environment.NewLine + obju.Signature);
Hope it will help.
Thanks,
hemant