CheckName Method

Applies To

MailMessage object.

Description

Validates the e-mail addresses that appear in the To:, Cc:, and Bcc: lines in the active WordMail message. This method is available only if WordMail is installed.

Note If the names cannot be validated, the Check Names dialog box is displayed.

Syntax

expression.CheckName

expression Required. An expression that returns a MailMessage object.

See Also

DisplaySelectNamesDialog method.

Example

This example validates the e-mail addresses that appear in the active WordMail message.

Application.MailMessage.CheckName