Want to Mail The Formated Content

2 posts, 0 answers
  1. Rahul
    Rahul avatar
    142 posts
    Member since:
    May 2009

    Posted 18 Jun 2009 Link to this post

    Hello i am using Radeditor in my application using that i want sent the mail.  I can type the content in rad content area and applying the
    bold  / Italic / Underline effect to the Text ... and adding some enter but when i sent the mail that time mail sending properly but it send the HTML content ............ HOw to send the formated text.

    The Content Area Content

    Hello How are you


    Rahul Mahajan


    And the Code Behind Code

      mails.Body() = RadEditor1.Content.ToString

    and the mailed content is

    <strong><em><span style="text-decoration: underline;">Hello How are you</span></em></strong> <br />
    <br />
    <br />
    <em>Thanks</em> <br />
    <br />
    <strong>Regards <br />
    Rahul Mahajan</strong>

    How to achieve this  ? Help me Urgent !!!!!!!

  2. Mark Fitzpatrick
    Mark Fitzpatrick avatar
    36 posts
    Member since:
    Jan 2004

    Posted 20 Jun 2009 Link to this post

    did you set the IsBodyHtml property of the mail message to true? Otherwise the information is viewed plain text. Remember, HTML is sent as plain text but the mail client has to identify it as HTML and then it renders it using the HTML formatting present. That's what the IsBodyHtml property does, let the mail client know that the text included in the message should be rendered as HTML.
Back to Top