MailItem.Body始终为null [英] MailItem.Body is always null

查看:62
本文介绍了MailItem.Body始终为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我从服务器获得约会响应时,我将其保存到邮件正文并最终执行mailitem.save()。

但是当我尝试访问相同的时候为了通过尝试访问mailItem.Body在日历中显示,它始终返回null。 50%正在使用插件的用户会在打开Outlook时启动它。我的意思是使用新的
笔记本电脑或台式机的人不会遇到这个问题。 我指的是这个stackoverflow链接,他们提到了一些安全问题(链接如下)。你能详细说明一下吗?



https://stackoverflow.com/questions/26067849/error-reading-outlook-calendar-appointment- with-c-sharp-program




解决方案

你好sharathnasa,


>> 每当我从服务器获得约会响应时,我将其保存到邮件正文并最终执行mailitem.save()。


为什么将约会响应保存到邮件正文中?你是怎么做到的?


> > 但是当我尝试访问相同内容以便通过尝试访问mailItem.Body来显示
日历时,它总是返回null。


一些代码可以说明我们你做了什么将帮助我们重现您的问题。


最诚挚的问候,


Terry


Whenever i get a appointment response from the server i'm saving it to the mail body and finally doing mailitem.save().
But when i try to access the same in order to display in the calendar by trying to access mailItem.Body, it always returns null. It is happening for 50% of the user who is using the plugin which will started when they open the outlook. I mean people with new laptop or desktop are not facing this issue.  I was referring this stackoverflow link, where they were mentioning about some security issue(link below). Could you elaborate it more?

https://stackoverflow.com/questions/26067849/error-reading-outlook-calendar-appointment-with-c-sharp-program


解决方案

Hello sharathnasa,

>>Whenever i get a appointment response from the server i'm saving it to the mail body and finally doing mailitem.save().

Why do you save the appointment response in to mail body? How do you do this?

>>But when i try to access the same in order to display in the calendar by trying to access mailItem.Body, it always returns null.

Some code that could illustrate us what you have done will be helpful for us to reproduce your issue.

Best Regards,

Terry


这篇关于MailItem.Body始终为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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