troubleshooting Question


Avatar of mimoben
mimoben asked on
1 Comment1 Solution479 ViewsLast Modified:
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")

    Set oItem = oLapp.CreateItem(0)
    With oItem
      .subject = subject
       .To = recipient
       .BodyFormat = olFormatRichText
       .Body = message
    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

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros