I am trying to send the email using exchange web service c#. It works fine if body contains normal text. But the body contains the URL like below is not working. it is sending the mail, but URL is not coming in the receipt end.
url contains < >
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);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.