Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.68 KB

Outlook.MailItem.Send(method).md

File metadata and controls

51 lines (32 loc) · 1.68 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
MailItem.Send method (Outlook)
vbaol11.chm1369
vbaol11.chm1369
Outlook.MailItem.Send
78c85013-523e-447b-c47d-2da0705f1fe0
06/08/2017
medium

MailItem.Send method (Outlook)

Sends the email message.

Syntax

expression. Send

expression A variable that represents a MailItem object.

Remarks

The Send method sends an item using the default account specified for the session. In a session where multiple Microsoft Exchange accounts are defined in the profile, the first Exchange account added to the profile is the primary Exchange account, and is also the default account for the session. To specify a different account to send an item, set the SendUsingAccount property to the desired Account object and then call the Send method.

Example

If you use Microsoft Visual Basic Scripting Edition (VBScript) in an Outlook form, you don't create the Application object, and you cannot use named constants. This example shows how to forward a mail item using VBScript code.

Sub CommandButton1_Click() 
 Set myNameSpace = Application.GetNameSpace("MAPI") 
 Set myFolder = myNameSpace.GetDefaultFolder(6) 
 Set myForward = myFolder.Items(1).Forward 
 myForward.Recipients.Add "Laura Jennings" 
 myForward.Send 
End Sub

See also

[!includeSupport and feedback]