Official Content

Indicates the authentication type used for verifying the identity with the mail server.

Scope

Level: Variables based on POP3Session Data Type or SMTPSession Data Type
Generators: .NET.NET Framework, Java
 

Syntax

&VariableBasedOnPOP3SessionOrSMTPSessionDataType.AuthenticationMethod = Value

Values

"XOAUTH2"   OAuth 2.0 Autentication
"" (empty string)  Basic Authentication

Description

Indicates the authentication type used for verifying the identity with the mail server. This property is taken into account just when Authentication is set to 1. For both values allowed, the secret identity value must be passed in the Password property (i.e., the access token for OAuth 2.0, or the password in case of Basic Authentication).

Sample 

Consider a &Mail variable based on the SMTPSession Data Type.

Then you can set its AuthenticationMethod property as shown: 

Event Start
   &Mail.Authentication = 1
   &Mail.AuthenticationMethod = !"XOAUTH2"
EndEvent
​​​​​

Run-time/Design-time

This property applies only at run-time.

Availability

This property is available since GeneXus 17 Upgrade 9.

See Also

POP3Session Data Type
SMTPSession Data Type
Password property
Authentication Property

 


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant