Part of discussion disappeared in forwarded e-mail in HtmlBodyText property


#1

Hello.

We use Aspose.Email.dll v19.3
When we receive a forwarded e-mail message as shown below a part of e-mail discussion (This text disappeared in this case) disappeared in Aspose.Email.MailMessage.HtmlBodyText property.
But Aspose.Email.MailMessage.HtmlBody has the full HTML information as shown in HtmlMessage.png.

This is forwarded e-mail:

This text disappeared


From:ASD@nasdl.com
Sent: Wed, 11 Apr 2009 05:39:09 -0500
To:k229@gmail.com
Cc:
Subject: ***TEST MESSAGE*** EMAIL
*** If you reply to this email: ***
  • Do not alter 'Subject:'
  • Response should be specific to this claim
  • Replies will be reviewed

test

Test ID1454574 / EXECUTIVE ASSISTANT
Division
PO, M, WI
P: 777-3, Ext 89



This e-mail and any attachments may contain confidential information


Could you please clarify a reason of that behavior. How could I get the full text information from HtmlBodyText property when HtmlBody contain such html code

Thanks.HtmlMessage.png (20.1 KB)


#2

@cap.aspose,

Can you please share source file along with generated result and sample code so that we may further investigate to help you out.


#3

Try to use this sample function please. You can receive any e-mail message. Just change the Htmlbody property to my value.

    internal static string TryToUsePop3AsposeEmail(string host, string user, string psw, int serverSideUniqueId,  bool useDefCred = false)
    {
        string  newBodyValue = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"><pre>This text disappeared</pre><br><hr>\r\n<b>From:</b> DisabilityBenefits@northwesternmutual.com<br><b>Sent:</b> Wed, 17 Apr 2019 05:39:09 -0500<br><b>To:</b> kpriester29@gmail.com<br><b>Cc:</b> <br><b>Subject:</b> ***TEST MESSAGE*** Important Claim Related Information - EMAIL ID:DIB0000003279 [Secure Message]<br><html><head></head><body><table cellpadding=\"0\" cellspacing=\"0\" style=\"width:700px;border-spacing:0;border-collapse:collapse;font-family:Verdana, Geneva, sans-serif;font-size:12px\"><tbody><tr style=\"border-collapse:collapse;padding:10px 0px;\"><td><b>*** If you reply to this email: *** <ul style=\"padding: 0; Margin: 0px; list-style-type: disc;\"><li style=\"Margin: 0px 0px 0px 20px;\">Do not alter \'Subject:\'</li><li style=\"Margin: 0px 0px 0px 20px;\">Response should be specific to this claim</li><li style=\"Margin: 0px 0px 0px 20px;\">Replies will be reviewed and a response, if needed, can be expected within 10 business days</li></ul></b></td></tr><tr style=\"padding:15px 0px\"><td><p>test</p></td></tr><tr style=\"border-collapse:collapse;padding-top:5px\"><td><p><b>Test ID174 / EXECUTIVE ASSISTANT</b><br>Disability Benefits Division<br>PO Box 2918, Milwaukee, WI 53201-2918<br>P: 1-800-748-9493, Ext 8479 | F: 414-625-1526</p><p><img src=\"https://static.northwesternmutual.com/nmc/images/nmc-email-logo.png\" style=\"max-width: 100%\"></p></td></tr></tbody></table>\r\n<div>\r\n<br><br>\r\nThis e-mail and any attachments may contain confidential information of Northwestern Mutual. If you are not the intended recipient of this message, be aware that any disclosure, copying, distribution or use of this e-mail and any attachments is prohibited. If you have received this e-mail in error, please notify Northwestern Mutual immediately by returning it to the sender and delete all copies from your system. Please be advised that communications with {SECURE MESSAGE} in the subject line have been sent using a secure messaging system. Communications that do not have this tag may not be secure and could be observed by a third party. Thank you for your cooperation. <br>\r\n<br><br>\r\n</div>\r\n</body></html>";
        
        var pop3ClientConnection = new Pop3Client();
        try
        {
            pop3ClientConnection.Host = host;
            pop3ClientConnection.Port = 995;
            pop3ClientConnection.Username = user;
            pop3ClientConnection.Password = psw;
            pop3ClientConnection.SecurityOptions = SecurityOptions.SSLAuto;
            pop3ClientConnection.UseDefaultCredentials = useDefCred;
            
            Aspose.Email.MailMessage fetchMessage = pop3ClientConnection.FetchMessage(serverSideUniqueId);

            // Change this property to the newValue string
            fetchMessage.HtmlBody = newBodyValue;

            // fetchMessage.HtmlBodyText doesn't contains this text -> This text disappeared
            Console.WriteLine(fetchMessage.HtmlBodyText);
        }
        catch (Exception e)
        {
            return "We have a problem..  " + e;
        }
        finally
        {
            // free up space
            pop3ClientConnection.Dispose();
        }

        return string.Format("Successful ");
    }

#4

@cap.aspose,

I have worked over your requirements and have been able to observe the issue. An issue with ID EMAILNET-39457 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


#5

Hi Team,
Do you have any updates?

Thank you


#6

@cap.aspose,

I have verified from our issue tracking system and like to share that the issue has been marked as resolved in upcoming Aspose.Email for .NET 19.5. We will share the good news with you as soon as the issue will be fixed.


#7

The issues you have found earlier (filed as EMAILNET-39457) have been fixed in this update.