I have a RichTextBox in WIndows application. where i can enter the formatted data into it. I save the data by
Dim rtfstr As String = RichTextBox1.Rtf.Replace("\'", "\\")
messgae = rtfstr
i am saving the message in the database in RTF format as datatype nvarchar(MAX).
i am retrieving into the same textbox by querying the database and assigning it to the
same tetxtbox
RichTextBox1.Rtf
= message
What I have tried:
Now i want to send this message as a mailbody ..
for that i have written the below code
strsql = "select message from data"
Dim mailbody As String = dt.Rows(0)("message").ToString()
dim mailHTMLBody = "<html><body><pre style='font-family:inherit;'>" + message + "
"
mail.ISBodyHTML = True
Then After sending the mail. In the mail body it is displaying the RTF Format.
can anyone suggest me for sending the rtf mail