| Author | 
         | 
         
      
        
         
         adam.kozovo Newbie 
          
 
  Joined: 30 June 2023
 Online Status: Offline Posts: 19
          | 
        
         
          
           | Posted: 14 July 2023 at 11:03pm | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hello
 Made Rtf based Msg and using MsgConvert converted to MailMessage.
 Saving as .eml or getting .BodyHtml reveals that if source Msg has page back color, it's not present in the result.
 
 Set MsgConvert.PreferRtfBodyToHtml = True
 
 Since this is an issue with Outlook that RTF messages with page back color, have non-back colored Html version inside, PreferRtfBodyToHtml must be set to True.
 But although source Rtf body part has back color, target MailMessage Html body part won't have.
 
 For the reference, comparing 2 Msg files with and without page back color, their Rtf part has this commands inserted inside:
 
 "{\*\background {\shp{\*\shpinst\shpleft0\shptop0\shpright0\shpbottom0\shpfhdr0\shpbxmargin\shpbxignore\shpbymargin\shpbyignore\shpwr0\shpwrk0\shpfblwtxt1\shpz0\shplid1025{\sp{\sn shapeType}{\sv 1}}{\sp{\sn fFlipH}{\sv 0}}{\sp{\sn fFlipV}{\sv 0}}{\sp{\sn fillColor}{\sv 3506515}}{\sp{\sn fFilled}{\sv 1}}{\sp{\sn lineWidth}{\sv 0}}{\sp{\sn fLine}{\sv 0}}{\sp{\sn bWMode}{\sv 9}}{\sp{\sn fBackground}{\sv 1}}{\sp{\sn fLayoutInCell}{\sv 1}}}}}\"
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   | 
      
        
         
         Alex AfterLogic Support 
          
  
  Joined: 19 November 2003
 Online Status: Offline Posts: 2207
          | 
        
         
          
           | Posted: 17 July 2023 at 11:25am | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
Hi,
 
 Yes, the built-in RTF-to-HTML converter is very basic and supports only a small subset of RTF features.
 
 Regards,
 Alex
         | 
       
       
        | Back to Top | 
         
          
         | 
       
       
       
        |   |