Export (0) Print
Expand All

MailItem.AddBusinessCard Method

Office 2007
Appends contact information based on the Electronic Business Card (EBC) associated with the specified ContactItem object to the MailItem object.

Version Information
 Version Added:  Outlook 2007

Syntax

expression.AddBusinessCard(contact)

expression   An expression that returns a MailItem object.

Parameters

NameRequired/OptionalData TypeDescription
contactRequiredContactItemThe contact item from which to obtain the business card information.

Remarks

This method adds contact information, generated from the information stored in the ContactItem object, to the existing MailItem object. The information included depends on the value of the BodyFormat property for the MailItem object:

Property valueResult
olFormatPlainA vCard (.vcf) file is created and added to the Attachments collection of the MailItem object.
olFormatRichTextA vCard (.vcf) file is created and added to the Attachments collection of the MailItem object.
olFormatHTMLAn image of the business card is generated and included in the Body property of the MailItem object, and a vCard (.vcf) file is created and added to the Attachments collection of the MailItem object.
Bb175252.vs_note(en-us,office.12).gif  Note
The attached vCard file contains only the contact information included in the Electronic Business Card associated with the ContactItem object. Any contact information not displayed in the Electronic Business Card is excluded from the vCard file.



Community Additions

ADD
Show:
© 2014 Microsoft