Ever wanted to send emails from BizTalk (using the SMTP adapter) which have images embedded in them? I did recently.
Sending HTML emails (or text emails) in BizTalk without embedded images has been done to death – all you need is the RawString message type
But how do you use the SMTP adapter to send emails with embedded images?
I didn't want to cheat and write a helper class.
I first looked at using the MIME/SMIME encoder pipeline component.
By default the MIME encoder uses a mime Content-Type of multipart/mixed
So if you have a multipart message with an HTML body part and a single image as a second part, this is what the MIME encoder generates[...]