authMechanism (property)

Used when connecting to the mail server.

Syntax

@property (nonatomic,readwrite,assign,getter=authMechanism,setter=setAuthMechanism:) int authMechanism;
- (int)authMechanism;
- (void)setAuthMechanism:(int)newAuthMechanism;

/* Possible Values */
AM_USER_PASSWORD(0),
AM_CRAMMD5(1),
AM_NTLM(2),
AM_APOP(3),
AM_SASLPLAIN(4),
AM_SASLDIGEST_MD5(5),
AM_KERBEROS(6),
AM_XOAUTH2(7)
public var authMechanism: HtmlmailerAuthMechanisms {
  get {...}
set {...} }
public enum HtmlmailerAuthMechanisms : Int32 { case amUserPassword = 0 case amCRAMMD5 = 1 case amNTLM = 2 case amAPOP = 3 case amSASLPlain = 4 case amSASLDigestMD5 = 5 case amKerberos = 6 case amXOAUTH2 = 7 }

Default Value

0

Remarks

The authentication mechanism property to be used when connecting to the mail server.

By default, this property is amUserPassword (0), and if the User and Password properties are set, the AUTH command is sent to the server for authentication. If this property is set to amCRAMMD5 (1), CRAM-MD5 authentication is used instead.

If this property is set to amNTLM (2) NTLM authentication will be used.

If this property is set to amKerberos (6) Kerberos authentication will be used. NOTE: This functionality is only available in Windows.

When set to amXOAUTH2 (7) set User to the username and AuthorizationIdentity to the OAuth token. See AuthorizationIdentity for details.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 iOS Edition - Version 20.0 [Build 8307]