Share via


PermissionService Property

Sets or returns an OlPermissionService constant that determines the permission service that will be used when sending an IRM protected message. Note that this property is useful only if you have more than one permission identity for a particular SMTP address. Read/write.

OlPermissionService can be one of the following:

  • olUnknown (0)
  • olWindows (1)
  • olPassport (2)

expression.PermissionService

*expression   * Required. An expression that returns a MailItem object.

Example

This Microsoft Visual Basic for Applications (VBA) example demonstrates how to specify the permission service before sending an item. Replace 'Dan Wilson' with a valid recipient name before running this example.

Sub SendMyMail()
    Set myItem = Outlook.CreateItem(olMailItem)
    myItem.To = "Dan Wilson"
    myItem.Subject = "Data files information"
    myItem.Permission = olDoNotForward
    myItem.PermissionService = olWindows
    myItem.Send
End Sub

Applies to | MailItem Object