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!
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)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Good Job
ASKER
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