MailMessage Interface

Definition

Represents the active email message if you are using Microsoft Word as your e-mail editor.

public interface class MailMessage
[System.Runtime.InteropServices.Guid("000209BA-0000-0000-C000-000000000046")]
public interface MailMessage
type MailMessage = interface
Public Interface MailMessage
Attributes

Remarks

Use the MailMessage property to return the MailMessage object.

The methods of the MailMessage object require that you are using Word as your e-mail editor and that an e-mail message is active. If either of these conditions isn't true, an error occurs.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Parent

Returns an object that represents the parent object of the specified object.

Methods

CheckName()

Validates the e-mail addresses that appear in the To:, Cc:, and Bcc: lines in the active e-mail message. This method is available only if you are using Microsoft Word as your e-mail editor.

Delete()

Deletes the specified object.

DisplayMoveDialog()

Displays the Move dialog box, in which the user can specify a new location for the active e-mail message in an available message store. This method is available only if you are using Microsoft Word as your e-mail editor.

DisplayProperties()

Displays the Properties dialog box for the active e-mail message. This method is available only if you are using Microsoft Word as your e-mail editor.

DisplaySelectNamesDialog()

Displays the Select Names dialog box, in which the user can add addresses to the To:, Cc:, and Bcc: lines in the active, unsent e-mail message. This method is available only if you are using Microsoft Word as your e-mail editor.

Forward()

Opens a new e-mail message with an empty To: line for forwarding the active message. This method is available only if you are using Microsoft Word as your e-mail editor.

GoToNext()

Displays the next mail message if you are using Microsoft Word as your e-mail editor.

GoToPrevious()

Displays the previous mail message if you are using Microsoft Word as your e-mail editor.

Reply()

Opens a new e-mail message— with the sender's address on the To: line— for replying to the active message.

ReplyAll()

Opens a new e-mail message— with the sender’s and all other recipients' addresses on the To: and Cc: lines, as appropriate— for replying to the active message.

ToggleHeader()

Toggles the display of the header in the active e-mail message.

Applies to