Exemple #1
0
        public static string ComposeRefMsg(MIME_Message mime, RenderContext context, int MsgId)
        {
            var bodywithheader = ComposeHeader(mime, context);

            string mailbody = MessageUtility.GetHtmlBody(mime);

            if (mailbody == null)
            {
                mailbody = MessageUtility.GetTextBody(mime);
            }

            if (mailbody == null)
            {
                mailbody = MessageUtility.GetAnyTextBody(mime);
            }

            string htmlbody = BodyComposer.RestoreInlineImages(mailbody, context.User, MsgId);

            return(bodywithheader.Replace("{{htmlbody}}", htmlbody));
        }