Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Create automatic HTML email message in Outlook 2000

Create automatic HTML email message in Outlook 2000

Scheduled Pinned Locked Moved Visual Basic
helphtmlquestioncareer
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    KirkNarine
    wrote on last edited by
    #1

    Hey, not too sure this is the right Message Board for this...but here goes: I want a macro to automatically open an email as HTML format rather than rich text. I have my send emails defaulted to HTML, yet when I run this macro it comes up as rich text. Any help would be appreciated. Dim objAppl As Outlook.Application Dim objNS As Outlook.NameSpace Dim objContact As Outlook.ContactItem Dim objNewmail As MailItem Dim objDrafts As MAPIFolder Dim objVorlage As MailItem On Error Resume Next Set objAppl = CreateObject("Outlook.Application") Set objNS = objAppl.GetNamespace("MAPI") Set objDrafts = objNS.GetDefaultFolder(olFolderDrafts) 'Checking all contacts in standard conta ' cts folder For Each objContact In objNS.GetDefaultFolder(olFolderContacts).Items.Restrict("[MessageClass] = 'IPM.Contact'") 'checking birthday of each contact If (Day(objContact.Birthday) = Day(Date)) And (Month(objContact.Birthday) = Month(Date)) Then 'creating new mail Set objNewmail = Application.CreateItem(olMailItem) With objNewmail..... My new mail comes out rich text always, is there coded way so that it opens as html?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups