This is a migrated thread and some comments may be shown as answers.

Want to Mail The Formated Content

1 Answer 36 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 18 Jun 2009, 02:29 PM
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

Thanks


Regards
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 !!!!!!!

1 Answer, 1 is accepted

Sort by
0
Mark Fitzpatrick
Top achievements
Rank 1
answered on 20 Jun 2009, 01:36 PM
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.
Tags
Editor
Asked by
Rahul
Top achievements
Rank 1
Answers by
Mark Fitzpatrick
Top achievements
Rank 1
Share this question
or