Exemple #1
0
        public void RenderMailMessage(IMailFolder mailFolder, IMessageSummary messageInfo)
        {
            if (!mailFolder.IsOpen)
            {
                mailFolder.Open(FolderAccess.ReadWrite);
            }

            MailRender mailRender = new MailRender();

            mailRender.RenderAsync(mailFolder, messageInfo.UniqueId, messageInfo.Body)
            .ContinueWith((t) =>
            {
                UpdateWebBrowser(this, t.Result);
            });
        }
Exemple #2
0
        public async Task <string> Render()
        {
            MailRender mailRender = new MailRender();

            return(await mailRender.RenderAsync(serverFolder, serverMessage.UniqueId, serverMessage.Body));
        }