Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted

1 solution

Have a look at this msdn page that might help you out:
http://msdn.microsoft.com/en-us/library/aa488364%28v=exchg.65%29.aspx[^]

In IBodyPartPtr the content type is set to "message/rfc822":
bp->Fields->Item["urn:schemas:mailheader:content-type"]->Value = _variant_t("message/rfc822");


Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900