Read the email body of a msg file

Hi ,

I am trying to find out is there any secure link in the email msg body by reading “https” key word
But now i am facing an issue.
If there is any logo/image in that email body , some times it red as https://…

How can i skip reading https from the logo of the email body.

 MapiMessage msgMapi = MapiMessage.FromFile(Path.Combine(msgTempPath, msgFileName));
                    <span style="color:blue;">if</span> (msgMapi.Body != <span style="color:blue;">null</span>)
                    {
                        <span style="color:blue;">if</span> (msgMapi.Body.ToUpper().Contains(<span style="color:#a31515;">"HTTPS"</span>))
                        {

                            <span style="color:blue;">try</span>
                            {

// do something
}


Here i am attaching the sample msg file.
Can you please help me on this.

Hi,

With respect to the above mail, in simple way how can we read the link from the email body starts with https:

hi Team,

Can you please help me how to read the url only from the msg body. Please…
Regards
Anish

Hi Anish,


Thanks for writing to Aspose.Email support team.

I have checked all the documentation and other sources and am afraid to inform that currently there is no such support available in Aspose.Email assembly, which can extract secure links from the message body. This requirement can only be achieved by manually parsing against some specific tag in the body.

Please feel free to write us back if you have any other query in this regard.

Hi,
Is there any feature available with Aspose.Network…Outlook.MapiMessage
to read the url from the msg body.

Regards
Anish

Hi Anish,


I am afraid to inform that Aspose.Email/Network doesn’t support parsing of the Email message body, as this doesn’t lie under the scope of our product. You can write your own code with filtering based on certain tags and keywords, such as alt, from the HTML to avoid unnecessary links retrieval from the message body. We appreciate your understanding in this regard.