SendMailAttach Property

Microsoft Word Visual Basic

expression.SendMailAttach

expression    Required. An expression that returns an Options object.

Example

This example opens a new mail message that has the active document attached to it.

Options.SendMailAttach = True
ActiveDocument.SendMail
		

This example returns the state of the Mail as attachment option on the General tab of the Options dialog box.

Msgbox Options.SendMailAttach