Indicates the authentication type used for verifying the identity with the mail server.
Level: Variables based on POP3Session Data Type or SMTPSession Data Type
Generators: .NET, .NET Framework, Java
&VariableBasedOnPOP3SessionOrSMTPSessionDataType.AuthenticationMethod = Value
"XOAUTH2" |
OAuth 2.0 Autentication |
"" (empty string) |
Basic Authentication |
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).
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
This property applies only at run-time.
This property is available since GeneXus 17 Upgrade 9.
POP3Session Data Type
SMTPSession Data Type
Password property
Authentication Property