Skip to content

Inline embed images in emails (MIME) and strip out attached images.

License

Notifications You must be signed in to change notification settings

jokokko/EMLTransformer

Repository files navigation

EMLTransformer Build status NuGet Version

Inline embed images in emails (MIME) and strip out attached images.

Package EMLTransformer | Platforms .NET 4.6, .NET Standard 2.0

Sample usage

var embedder = new MailInlineImageEmbedder();
embedder.InlineEmbedImagesAndStripFromAttachments("email.eml", "out.eml");

If images are attached as application/octet-stream, the MailInlineImageEmbedder can be passed an implementation of IMimeTypeSniffer.

Set type of embedded inline images based on file extension

var embedder = new MailInlineImageEmbedder(new FileExtensionBasedMimeTypeSniffer());
var streamOut = embedder.InlineEmbedImagesAndStripFromAttachments(streamIn);

About

Inline embed images in emails (MIME) and strip out attached images.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published