Sends the workbook by using the installed mail system.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
'Declaration Sub SendMail ( _ Recipients As Object, _ Subject As Object, _ ReturnReceipt As Object _ )
void SendMail( Object Recipients, Object Subject, Object ReturnReceipt )
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.
Specifies the subject of the message. If this argument is omitted, the document name is used.
true to request a return receipt. false to not request a return receipt. The default value is false.
For information on optional parameters, see Optional Parameters in Office Solutions.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.