Author: duwke | Posted on: 6/19/2008 1:24:20 PM | Views : 331

Howdy,

I have a requirement for my silverlight project to be able to email the results of some "findings."  The original requirement was to include graphs (currently done in silverlight) as a pdf.  Converting my silverlight graphs to pdf doesn't seem feasible.

So, I've been looking around at other options, and mhtml struck me as a good idea.  I would package the html (with data) and the xap into the MHTML "container" and email that directly.  The benefit is that I can include interactivity.

this approach works for flash and javascript.. but unfortunately, I've not been able to get it working with silverlight. 

Here's the code that works using flash:


From: <me>
Subject: test
Date: Thu, 19 Jun 2008 10:35:50 -0500
MIME-Version: 1.0
Content-Type: multipart/related;
 boundary="----=_NextPart_000_0035_01C8D1F8.3E591820& ...

Go to the complete details ...