[英]send email using exchange web server with body contains URL
I am trying to send the email using exchange web service c#. 我正在尝试使用Exchange Web Service C#发送电子邮件。 It works fine if body contains normal text.
如果正文包含普通文本,则效果很好。 But the body contains the URL like below is not working.
但是正文中包含如下所示的URL无效。 it is sending the mail, but URL is not coming in the receipt end.
它正在发送邮件,但URL不在收据末尾。
url contains < > 网址包含<>
http://localhost:52122/Home?Function=ABC&Parameter1=12345 http:// localhost:52122 / Home?Function = ABC&Parameter1 = 12345
Please help. 请帮忙。
Thanks in advance 提前致谢
replace the body content with this code 用此代码替换正文内容
string Url = "localhost:52122/Home?Function=ABC&Parameter1=12345";
string EmailBody = @"Email Body </br> please " + String.Format("<a href='{0}'>Click here</a>", Url);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.