_Workbook.SendMail Method

Sends the workbook by using the installed mail system.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Sub SendMail ( _
    Recipients As Object, _
    Subject As Object, _
    ReturnReceipt As Object _
)
'Usage
Dim instance As _Workbook
Dim Recipients As Object
Dim Subject As Object
Dim ReturnReceipt As Object

instance.SendMail(Recipients, Subject, _
    ReturnReceipt)
void SendMail(
    Object Recipients,
    Object Subject,
    Object ReturnReceipt
)

Parameters

  • Recipients
    Type: System.Object

    Required Object. Specifies the name of the recipient as text, or as an array of text strings if there are multiple recipients. At least one recipient must be specified, and all recipients are added as To recipients.

  • Subject
    Type: System.Object

    Optional Object. Specifies the subject of the message. If this argument is omitted, the document name is used.

  • ReturnReceipt
    Type: System.Object

    Optional Object. True to request a return receipt. False not to request a return receipt. The default value is False.

See Also

Reference

_Workbook Interface

_Workbook Members

Microsoft.Office.Interop.Excel Namespace