c# - sending xml in Microsoft.Exchange.WebServices.Data.emailmessage.culture -


i trying send xml string through exchange service here code

servicepointmanager.expect100continue = true;             servicepointmanager.securityprotocol = securityprotocoltype.ssl3;             servicepointmanager.servercertificatevalidationcallback = delegate(object s, x509certificate certificate, x509chain chain, sslpolicyerrors sslpolicyerrors) { return true; };               exservice.usedefaultcredentials = false;             exservice.credentials = new networkcredential("set of credentials");             exservice.url = new uri("https://url");   public void sendmail(string subject, string body, string to)         {             lock (this)             {             emailmessage msg = new emailmessage(exservice); #if debug             msg.torecipients.add("test@address.com"); #else             msg.torecipients.add(to); #endif             msg.body = body;             msg.subject = subject;             msg.send(); }} 

the subject , guess string objects of pieces of information. body string comprised of xml. have use code before html , emails came out fine. need use xml desktop or service application. when put in xml string emails come out blank if put in string literal comes out fine. outlook reporting emails html rather plain text when arrive in outlook. need add make xml appear in emails received?

i sound solution, has surround body tags rather exchange accept string html


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -