Avatar of mimoben
mimoben
 asked on

RTF to HTML

Hi,
I tried also to send email from RichText  control.
I tried also to send RichText format programmatically from Outlook object but the I got "ject doesn't support this property or method " Error.
The line .BodyFormat = olFormatRichText is the origin of this error.
    Dim oLapp As Object
    Dim oItem As Object

   Set oLapp = CreateObject("Outlook.application")
   Dim olNs As Outlook.NameSpace
   Set olNs = oLapp.GetNamespace("MAPI")
   olNs.Logon

    Set oItem = oLapp.CreateItem(0)
    '
    With oItem
      .subject = subject
       .To = recipient
       .BodyFormat = olFormatRichText
       .Body = message
       .Send
    End With
    '
    Set oLapp = Nothing
    Set oItem = Nothing

Another alternative is sending email in HTML format. But I need to I need to convert RichText Box format to  HTML witch is not easy.
Thank you in advance for any help. Regards
Programming

Avatar of undefined
Last Comment
pearlsoft

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
pearlsoft

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes