Menu

#12 How to use custom formatted HTML body

1.0
open
nobody
None
2018-01-03
2016-10-20
No

Hi

We're using AIM nuget in our Web API project to send email notifications. Our email body contains custom formatted HTML, like links with hrefs and link text. We also need to separate lines with
. Aegis library seems to be formatting the HTML body on its own. For example, single carriage (CR/LF) returns are not honored, they are removed. Double CRLFs seem to be replaced with

and any custom formatted HTML like a link () or
seems to be getting HTML encoded.

I want to know how to format HTML content body but not have Aegis perform its own HTML encoding of the body.
Thanks!

-Srikanth

Related

Tickets: #12

Discussion

  • Araz Farhang Dareshuri

    Thanks for choosing AIM, this shall be related to an error within our library we wish to fix this in future

     
  • Veena

    Veena - 2018-01-02

    We are using same thing.Is this problem resolved? if so how to do it

     
    • Araz Farhang Dareshuri

      Hi,
      Unfortunately this one is not in the priority list.

      However, doing of it is not that complicated . You will only need to have to format body when the text is set .

      Please keep me updated if you do it.

      Thanks

      On 2 Jan 2018, at 8:57 PM, Veena veenahosur@users.sf.net wrote:

      We are using same thing.Is this problem resolved? if so how to do it

      [tickets:#12] https://sourceforge.net/p/netimplicitssl/tickets/12/ How to use custom formatted HTML body

      Status: open
      Milestone: 1.0
      Created: Thu Oct 20, 2016 12:29 PM UTC by Srikanth Subramanian
      Last Updated: Mon Jan 23, 2017 09:41 AM UTC
      Owner: nobody

      Hi

      We're using AIM nuget in our Web API project to send email notifications. Our email body contains custom formatted HTML, like links with hrefs and link text. We also need to separate lines with
      . Aegis library seems to be formatting the HTML body on its own. For example, single carriage (CR/LF) returns are not honored, they are removed. Double CRLFs seem to be replaced with

      and any custom formatted HTML like a link () or
      seems to be getting HTML encoded. https://sourceforge.net/I want to know how to format HTML content body but not have Aegis perform its own HTML encoding of the body.
      Thanks!

      -Srikanth

      https://sourceforge.net/Sent from sourceforge.net because you indicated interest in https://sourceforge.net/https://sourceforge.net/p/netimplicitssl/tickets/12/ https://sourceforge.net/p/netimplicitssl/tickets/12/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #12

  • Veena

    Veena - 2018-01-03
      string textBody = " <table border=" + "1 solid black" + " cellpadding=" + 0 + " cellspacing=" + 0 + " width = " + 400 + "><tr bgcolor='#4da6ff'><td><b>Column 1</b></td> <td> <b> Column 2</b> </td></tr>";
                                    for (int loopCount = 0; loopCount < dt1.Rows.Count; loopCount++)
                                    {
                                        textBody += "<tr><td>" + dt1.Rows[loopCount]["email"] + "</td><td> " + dt1.Rows[loopCount]["pending"] + "</td> </tr>";
                                    }
                                    textBody += "</table>";  
    

    this is my mail body but its not working.It displaying html tags in mail

     

    Last edit: Veena 2018-01-03

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.