SendMail Method

Microsoft Word Visual Basic

SendMail Method

       

Opens a message window for sending the specified document through Microsoft Exchange.

Note   Use the SendMailAttach property to control whether the document is sent as text in the message window or as an attachment.

expression.SendMail

expression   Required. An expression that returns a Document object.

Example

This example sends the active document as an attachment to a mail message.

Options.SendMailAttach = True
ActiveDocument.SendMail