Share via


_MailItem.SendUsingAccount Property

Returns or sets an Account object that represents the account under which the MailItem is to be sent. Read/write.

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

Syntax

'Declaration
Property SendUsingAccount As Account
    Get
    Set
'Usage
Dim instance As _MailItem
Dim value As Account

value = instance.SendUsingAccount

instance.SendUsingAccount = value
Account SendUsingAccount { get; set; }

Property Value

Type: Microsoft.Office.Interop.Outlook.Account

Remarks

The SendUsingAccount property can be used to specify the account that should be used to send the MailItem when the Send method is called. This property returns Nothing (a null reference (Nothing in Visual Basic) in C#) if the account specified for the MailItem no longer exists.

See Also

Reference

_MailItem Interface

_MailItem Members

Microsoft.Office.Interop.Outlook Namespace