ContactItem.Email2AddressType property (Outlook)

Returns or sets a String representing the address type (such as EX or SMTP) of the second email entry for the contact. Read/write.

Syntax

expression. Email2AddressType

expression A variable that represents a ContactItem object.

Remarks

This is a free-form text field, but it must match the actual type of an existing email transport.

Example

This Visual Basic for Applications (VBA) example sets "SMTP" as the address type for the second email entry of a contact.

Sub SetType() 
 
 Dim myItem As Outlook.ContactItem 
 
 
 
 Set myItem = Application.CreateItem(olContactItem) 
 
 myItem.Email2Address = "someone@example.com" 
 
 myItem.Email2AddressType = "SMTP" 
 
 myItem.Display 
 
End Sub

See also

ContactItem Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.