Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何以格式传递字符串<;someText>;在MailMessage.Body属性中_C# - Fatal编程技术网

C# 如何以格式传递字符串<;someText>;在MailMessage.Body属性中

C# 如何以格式传递字符串<;someText>;在MailMessage.Body属性中,c#,C#,我需要在MsgBody部分传递一些尖括号中的文本,如或,我无法这样做。。。我的代码- MailMessage msg = new MailMessage(); msg.Body = string.Format("<b>System Area :</b>{0}<br /><b>Assigned To : </b>{1}<br /><b>Status :</b><font col

我需要在
MsgBody
部分传递一些尖括号中的文本,如或