Object model comparison VBA Mailer vs Outlook

The VBA Mailer object model is for the most part a subset of the Outlook object model targeted at sending emails using Outlook VBA syntax. To help you decide if you may expect VBA Mailer to be a sufficiently complete replacement of Outlook, to allow you to continue using your previously created macros that use Outlook as email provider we provide here a detailed comparison. First you see the VBA Mailer object model diagram. After that, for each of the included object types the differences are shown; which methods and properties of the supported Outlook object type was included, which have been excluded and some that have been added.

VBA Mailer object model diagram

Application MailItem Namespace Recipients Attachments Accounts AddressLists Recipient Attachment Account AddressList AddressEntry

VBA Mailer classes comparisons

Note: below classes are ordered alphabetically, except the most important ones, Application (CreateItem) and MailItem, which are presented first.

Application

See: VBA Mailer Account object

Included Methods and Properties

  • Session
  • CreateItem

Methods and Properties not included

ActiveExplorer, ActiveInspector, ActiveWindow, AdvancedSearch, Application, Assistance, Class, COMAddIns, CopyFile, CreateItemFromTemplate, CreateObject, DefaultProfileName, Explorers, GetNamespace, GetObjectReference, Inspectors, IsSearchSynchronous, IsTrusted, LanguageSettings, Name, Parent, PickerDialog, ProductCode, Quit, RefreshFormRegionDefinition, Reminders, TimeZones, Version

MailItem

See: VBA Mailer MailItem object

Included Methods and Properties

  • Application
  • Session
  • Attachments
  • BCC
  • Body
  • BodyFormat
  • CC
  • CreationTime
  • Display
  • HTMLBody
  • LogSentMail
  • Recipients
  • Save
  • Send
  • SenderEmailAddress
  • Subject
  • To

Planned for Inclusion Methods and Properties

  • SentOnBehalfOfName
  • DeferredDeliveryTime
  • AddBusinessCard

Added Methods and Properties

  • SaveOnServer: (default False) In most cases (exception Gmail) emails sent using SMTP are not automatically stored on the email server in the Sent folder. You can indicate that you want this to be happen by setting this property to true, but then you have to also supply IMAP settings for the email account.
  • LogSentMail: (default False) writes details on the sent email to the VBA Mailer log, including whether sending was successful.

Methods and Properties not included

Actions, AlternateRecipientAllowed, AutoForwarded, AutoResolvedWinner, BillingInformation, Categories, Class, Companies, Conflicts, ConversationID, ConversationIndex, ConversationTopic, DeferredDeliveryTime, DeleteAfterSubmit, DownloadState, EntryID, ExpiryTime, FlagRequest, FormDescription, GetInspector, Importance, InternetCodepage, IsConflict, IsMarkedAsTask, ItemProperties, LastModificationTime, MarkForDownload, MessageClass, Mileage, NoAging, OriginatorDeliveryReportRequested, OutlookInternalVersion, OutlookVersion, Permission, PermissionService, PermissionTemplateGuid, PropertyAccessor, ReadReceiptRequested, ReceivedByEntryID, ReceivedByName, ReceivedOnBehalfOfEntryID, ReceivedOnBehalfOfName, ReceivedTime, RecipientReassignmentProhibited, ReminderOverrideDefault, ReminderPlaySound, ReminderSet, ReminderSoundFile, ReminderTime, RemoteStatus, ReplyRecipientNames, ReplyRecipients, RetentionExpirationDate, RetentionPolicyName, RTFBody, Saved, SaveSentMessageFolder, Sender, SenderEmailType, SenderName, Sensitivity, Sent, SentOn, SentOnBehalfOfName, Size, Submitted, TaskCompletedDate, TaskDueDate, TaskStartDate, TaskSubject, ToDoTaskOrdinal, UnRead, UserProperties, VotingOptions, VotingResponse

Account

VBA Mailer has its own interpretation of Account, quite different from that of Outlook. Essentially it contains information needed to be able to send emails using SMTP and to store them using IMAP. The role however is the same: when sending an email it needs to be specofied as SendUsingAccount.

See: VBA Mailer Account object

Included Methods and Properties

  • SMTPAddress
  • DisplayName

Added Methods and Properties

SMTPPassword (Read-only), SMTPServer, SMTPPort, LogSentMail, UseIMAP, IMAPServer, IMAPPort, IMAPServerPassword, IMAPSentFolder, IMAPDraftsFolder, SaveOnServer, IsDefaultAccount

Methods and Properties not included

GetAddressEntryFromID, GetRecipientFromID, AccountType, Application, AutoDiscoverConnectionMode, AutoDiscoverXml, Class, CurrentUser, DeliveryStore, ExchangeConnectionMode, ExchangeMailboxServerName, ExchangeMailboxServerVersion, Parent, Session, UserName

Accounts

See: VBA Mailer Accounts object

Included Methods and Properties

  • Add
  • Item
  • Count

Methods and Properties not included

Application, Class, Parent, Session

Attachment

See: VBA Mailer Attachment object

Included Methods and Properties

  • FileName
  • Type
  • Position
  • DisplayName

Methods and Properties not included

Application, BlockLevel, Class, Delete, GetTemporaryFilePath, Index, Parent, PathName, PropertyAccessor, SaveAsFile, Session, Size

Attachments

See: VBA Mailer Attachments object

Included Methods and Properties

  • Add
  • Item
  • Remove
  • Parent

Added Methods and Properties

Parent

Methods and Properties not included

Application, Class, Count, Session

Namespace

See: VBA Mailer Namespace object

Included Methods and Properties

  • Application
  • Accounts

Planned for Inclusion Methods and Properties

CreateAddressList()

Added Methods and Properties

  • AddAccount
  • GetDefaultAccount
  • GetAccountForEmailAddress

Methods and Properties not included

Accounts, AddressLists, AddStore, AddStoreEx, Application, AutoDiscoverConnectionMode, AutoDiscoverXml, Categories, Class, CompareEntryIDs, CreateContactCard, CreateRecipient, CreateSharingItem, CurrentProfileName, CurrentUser, DefaultStore, Dial, ExchangeConnectionMode, ExchangeMailboxServerName, ExchangeMailboxServerVersion, Folders, GetAddressEntryFromID, GetDefaultFolder, GetFolderFromID, GetGlobalAddressList, Offline, Parent, Session, Stores, SyncObjects, Type

Recipient

See: VBA Mailer Recipient object

Represents a user or resource, generally a mail or mobile message addressee

Included Methods and Properties

  • Name
  • Address
  • Type
  • Resolve

Methods and Properties not included

Delete, FreeBusy, Resolve,AddressEntry, Application, AutoResponse, Class, DisplayType, EntryId, Index, MeetingResponseStatus, Parent, PpropertyAccessor, Resolved, Sendable, Session, TrackingStatus, TrackingStatusTime

Recipients

See: VBA Mailer Recipients object

Returns a Recipients collection that represents all the recipients for the item. Read-only

Included Methods and Properties

  • Count
  • Add
  • Item
  • Remove
  • ResolveAll

Methods and Properties not included

Application, Class, Parent, Session

AddressList

See: VBA Mailer Addresslist object

Represents an address book that contains a set of AddressEntry objects.

Included Methods and Properties

  • Name
  • AddressEntries

Methods and Properties not included

AddressList, AddressListType, Application, Class, GetContactsFolder, ID, Index, IsInitialAddressList, IsReadOnly, Members, Parent, PropertyAccessor, ResolutionOrder, Session

AddressLists

See: VBA Mailer Addresslists object

Contains a set of AddressList objects.

Included Methods and Properties

  • Name
  • Count

Methods and Properties not included

Application, Class, Parent, Session

AddressEntry

See: VBA Mailer AddressEntry object

Represents a person, group, or public folder to which the messaging system can deliver messages.

Included Methods and Properties

  • Address
  • Name
  • Remove
  • Item
  • Add

Methods and Properties not included

AddressEntryUserType, Application, Class, Delete, Details, DisplayType, GetContact, GetExchangeDistributionList, GetExchangeUser, GetFreeBusy, ID, Parent, PropertyAccessor, Update