Share via


MailItem.Send Method

Outlook Developer Reference

Sends the e-mail message.

Syntax

expression.Send

expression   A variable that represents a MailItem object.

Example

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

Visual Basic Scripting Edition
  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