Workbook.SendMail Method
Visual Studio 2005
Sends the workbook by using the installed mail system.
Namespace: Microsoft.Office.Tools.Excel
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
Assembly: Microsoft.Office.Tools.Excel (in microsoft.office.tools.excel.dll)
'Declaration Public Overridable Sub SendMail ( _ Recipients As Object, _ <OptionalAttribute> Subject As Object, _ <OptionalAttribute> ReturnReceipt As Object _ )
Parameters
- Recipients
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
Specifies the subject of the message. If this argument is omitted, the document name is used.
- ReturnReceipt
true to request a return receipt. false to not request a return receipt. The default value is false.
Optional Parameters
For information on optional parameters, see Understanding Optional Parameters in COM Interop.