private void ReplaceInlineImages(IEnumerable <KeyValuePair <string, Guid> > createAttachments) { var imageReplacer = new ImageReplacer(); foreach (KeyValuePair <string, Guid> pair in createAttachments) { imageReplacer.Add(pair.Key, pair.Value); } if (imageReplacer.Count > 0) { _message.Body = imageReplacer.Replace(_message.Body); UpdateMessage(); } }