Login Method

Official Content
This documentation is valid for:

Starts a session.

Syntax

&DataType.Login

Type Returned:
Numeric

Description

MAPISession: The MAPI session will be started with the profile indicated in the Profile property. If this property has not been assigned, a window will be opened prompting you for the profile to be used. 
After starting a session with the indicated profile, the “Inbox” folder (or an equivalent one) is opened.
 
SMTPSession/POP3Session: The SMTP/POP3 session will be started with the server indicated in the Host property and in the port indicated in the Port property. The values of the UserName and Password properties will be used for the server authentication. 

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

Scope

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

See Also

Authentication Property
Host Property
Password Property
Port Property
Profile Property
UserName Property
Receive Method
Send Method
MAPISession Data Type
POP3Session Data Type
SMTPSession Data Type