Communicator Web Access [英] Communicator Web Access

查看:56
本文介绍了Communicator Web Access的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我向CWA发送text / html消息时,它无法识别任何内容。那么我应该使用哪种内容类型将来自UCMA的html格式化消息发送给CWA?

hi , when i send text/html message to CWA it does not recognize anything . so what is the content type i should use to send html formated message to a CWA from UCMA?

这是我的代码

byte [] htmlBytes = 编码 。UTF8.GetBytes(消息);

byte[] htmlBytes=Encoding.UTF8.GetBytes(message);

imFlow .BeginSendInstantMessage( new System.Net.Mime。 ContentType " text / html" ),
htmlBytes,SendMessageCompleted,imFlow);

imFlow.BeginSendInstantMessage(newSystem.Net.Mime.ContentType("text/html"), htmlBytes, SendMessageCompleted, imFlow);

推荐答案



imFlow.BeginSendInstantMessage (newContentType("text/html"), Encoding.UTF8.GetBytes(_messageToSend), SendMessageCompleted, imFlow);




此代码与我合作并给我正确的格式


this code is work fine with me and give me the correct format


这篇关于Communicator Web Access的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆