Send Method

Official Content
This documentation is valid for:

Sends a message.

Syntax

&DataType.Send(Message)

Type Returned:
Numeric

Where:
Message
Is a MailMessage type parameter.

Description

MAPISession: If the address of a recipient cannot be solved, a Names window will be shown allowing the user to choose the right recipient among all the possible recipients for the address specified. 
After performing a Send, the immediate sending of emails is done compulsorily. As a result, if a telephone connection to the Internet is being used, dialing will begin when the Send method is called.  

OutlookSession: If a destination address cannot be solved, the editing window will be shown, as if the value of the EditWindow property were 1. 

Note:
This method returns an error code, so it is possible to call it as a (&Err = &DataType.Send(…..)) function.

Scope

Extended Data Types: MAPISession, OutlookSession, SMTPSession
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

See Also

EditWindow Property
Receive Method
MailMessage Data Type
MAPISession Data Type
OutlookSession Data Type
SMTPSession Data Type