How can i set MHT-Body for Mail sending through Exchange-Server RRS feed

  • Question

  • I have a Message as a MHT-File. Now I am searching a way to set this for a Mail to send through ExchangeServer (with Exchange Web Service). When I set it as a MIME-Content, the Parts (picture and text) will be attached as Attachments (jpg-file and html-File). But I need a way to set the whole MHT as a body with all containing objects.


    EmailMessage message = new EmailMessage(service);
    message.MimeContent = new MimeContent { Content = File.ReadAllBytes(bodyPath) };



    Best Regards, Thomas

    Wednesday, April 6, 2011 1:57 PM

All replies

  • If your going to use it in that manner what you posting must be a proper RFC822 message (that's mime encoded) so if you preprocess whatever your MHT file is and put this into a RFC822 Stream you should then be able to upload and send it via EWS.


    Thursday, April 7, 2011 3:51 AM