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

问题描述

大家好,

我有一个应用程序可以从用户的交换服务器读取未读邮件.

一些带有.MSG附件的电子邮件具有
Response.ContentType值为" application/octet-stream "
某些具有此值为" message/rfc822 ".

内容类型为"message/rfc822"的响应中没有 urn:schemas:httpmail:attachmentfilename .

谁能建议我如何从具有ContentType作为"message/rfc822"的交换服务器发送电子邮件.电子邮件应从Exchange Server发送,而不是使用webDav或任何其他方法从代码发送.

任何建议都将帮助我重现此问题...

谢谢.

Hi Everyone,

I have an application that reads Unread mail from user''s exchange server.

Some of the emails that have .MSG as attachment have
Response.ContentType value as "application/octet-stream"
and some have this value as "message/rfc822".

Response with ContentType "message/rfc822" does not have urn:schemas:httpmail:attachmentfilename present in the response.

Can any one suggest me how to send an email from exchange server that has ContentType as "message/rfc822". The email should be sent from the Exchange Server not from the code using webDav or any other method.

Any suggestion would help me to replicate the issue ...

Thank you.

推荐答案

bp->Fields->Item["urn:schemas:mailheader:content-type"]->Value = _variant_t("message/rfc822");



祝你好运!



Good luck!


这篇关于Response.ContentType问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 09:13