Question : VB.Net 2008: Send email using richtextbox as Body ignoring Vbnewline and CRLF

I have a Richtext box on my application.  I've provided a link above it that enables when the box shows an error in order that the user can email the error to IT.  The code works great except that the email is created with the message all on one line.

If the rtb has:
____________________________
Drop EMP

ERROR:

Cannot drop the table 'EMP', because it does not exist or you do not have permission.
____________________________

The email message body will be:
____________________________
Drop EMPERROR:Cannot drop the table 'EMP', because it does not exist or you do not have permission.
____________________________

How do I get the full text of the rtb to go to the email?

This is my code:

1:
System.Diagnostics.Process.Start("mailto:[email protected]?Subject=Script App Message From: " & uid & "&Body=" & rtbMessage.Text)

Answer : VB.Net 2008: Send email using richtextbox as Body ignoring Vbnewline and CRLF

Correction, replace LineFeeds....

    System.Diagnostics.Process.Start("mailto:email@domain.com?" & _
                                                         "Subject=Script App Message From: " & uid & _
                                                         "&Body=" & rtbMessage.Text.Replace(vbLf, "%0a"))
Random Solutions  
 
programming4us programming4us