简体   繁体   English

使用包含主体的URL的Exchange Web服务器发送电子邮件

[英]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.

相关问题 使用 Exchange Web 服务获取电子邮件附件的服务器 URL - Get Server URL of an Email Attachment using Exchange Web Services 无法以编程方式使用MS Exchange Server 2010 SP2的Web服务发送电子邮件 - Can not programmatically send email using web service of MS Exchange Server 2010 SP2 这是我使用 Exchange Server 的服务发送 email 的代码 - This is the code I use to send an email using the service of Exchange Server 如何在不使用smtp的情况下通过Exchange服务器发送电子邮件? - How to send email via exchange server without using smtp? 如何通过电子邮件在交换服务器上发送.zip附件? - How to send .zip in attachment by email on exchange server? 如何使用Exchange Web服务(EWS)API通过共享邮箱发送电子邮件 - How to send email via a Shared MailBox using Exchange Web Services (EWS) API 如何使用css在电子邮件正文中发送网页 - How to send web page in email body with css 在ASP.NET中使用EXCHANGE SERVER(Microsoft Outlook Web Access)发送邮件 - Send mails using EXCHANGE SERVER (Microsoft Outlook web access)in asp.net 无法发送正文包含 IP 地址和端口号的电子邮件 - Failed to send an EMail with body contains ip address and port no c#通过Exchange Server 2010发送电子邮件 - c# Send Email through Exchange server 2010
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM