Recipient Object
Overview
The recipient object holds recipient information for the MailItem to access.
Example
The following code example demonstrates this capability:
vba
' Initializes the nlsMailer Application
Dim MailerApp As nlsMailer.Application
Set MailerApp = New nlsMailer.Application
' Adds an account
Dim accOne As nlsMailer.Account
Set accOne = MailerApp.Accounts.Add "Person 1", "testone@example.com", "api-key-01234", "https://apiUrlOne.com", olMailgun
Dim mailItem As nlsMailer.MailItem
Set mailItem = MailerApp.CreateItem(olMailItem)
Dim recipient As nlsMailer.Recipient
Set recipient = mailItem.Recipients.Add("recipient@example.com")
With recipient
Debug.Print .Address
Debug.Print .Index
Debug.Print .RecipientType
End With
Methods
Name | Type |
---|---|
Delete |
Void |
Properties
Name | Type |
---|---|
Address |
String |
Class |
olObjectClass |
Index |
Long |
Parent |
Recipients |
RecipientType |
olMailRecipientType |