Official Content

Starts a session.



Type Returned:


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


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.

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

Last update: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant