| Author |  | 
      
        | zbang.yaniv Newbie
 
  
 
 Joined: 31 January 2012
 Location: Israel
 Online Status: Offline
 Posts: 6
 | 
          Hello,
           | Posted: 17 April 2012 at 3:18am | IP Logged |   |  
           | 
 |  
 '
 Some emails arrive with html tags instead of chars, such as:
 & #39; instead of '
 & #64; instead of @
 (space between & and # should be removed of course)
 
 Is it possible to change the MailMessage so it yields the chars and not the tags?
 
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Are you speaking of the converting to plaintext message? For HTML message, it's absolutely OK for those characters to stay encoded, they will be displayed properly in web browser.
           | Posted: 17 April 2012 at 4:11am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | zbang.yaniv Newbie
 
  
 
 Joined: 31 January 2012
 Location: Israel
 Online Status: Offline
 Posts: 6
 | 
          I show it both in browser where it's ok and in WPF, and there are rare emails that arrive with these tags.
           | Posted: 17 April 2012 at 5:45am | IP Logged |   |  
           | 
 |  I am using Mailbee verion 7's default settings of conversion to/from HTML
 
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          I just checked this. Both characters have been displayed fine in plain-text version.
           | Posted: 17 April 2012 at 7:51am | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | MailMessage msg = new MailMessage();
 msg.LoadMessage(@"C:\Temp\test.eml");
 msg.Parser.HtmlToPlainMode = HtmlToPlainAutoConvert.IfHtml;
 Console.WriteLine(msg.BodyPlainText);
 
 |  |  |  
 I forced HMTL-to-plain text conversion so that MailBee generates plain-text even if the message already has plain-text version. Perhaps, in your case you have HTML message with plain-text part and that part was generated incorrectly by the composer of the message.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |