Link to home
Start Free TrialLog in
Avatar of KimberleyY
KimberleyY

asked on

Programatically create formatted / rich text to send in an email

I need  to send formatted text (bullet points, bolded words etc...)  in an email from our app.  I must also fill in some of the information from the database.   Such as names, order details etc..  

The code snippet details how I am sending the email which works.

How can I send this in the body of the email with all the formatting they requested?

Thanks!


 


 

Dim StringCommand As New System.Text.StringBuilder
 
        StringCommand.Append("mailto:")
        StringCommand.Append(Recipient)
        StringCommand.Append("?")
 
        If Subject <> "" Then
            StringCommand.Append("subject=" & Subject & "&")
        End If
 
        If CC <> "" Then
            StringCommand.Append("cc=" & CC & "&")
        End If
 
        If BCC <> "" Then
            StringCommand.Append("bcc=" & BCC & "&")
        End If
 
 
        If Body <> "" Then
            StringCommand.Append("body=" & Body & "&")
        End If
 
   
        System.Diagnostics.Process.Start(StringCommand.ToString)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Jason Evans
Jason Evans
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of KimberleyY
KimberleyY

ASKER

Hi MrClyfar,

Thanks!  I was afradi that the message needed to be in HTML.  I did find some free converters for rtf to html.  And I will also look into the System.Net.Mail namespace.

Thanks Again
Good Job