Difference between revisions of "TSmtpCli.AuthType"

From Overbyte
Jump to navigation Jump to search
 
(4 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
== Description ==
 
== Description ==
  
Property AuthType specifies the authentication methode to be used with method [[TSmtpCli.Auth | Auth]].  
+
Property AuthType specifies the authentication method to be used with method [[TSmtpCli.Auth | '''Auth''']]. Authentication is necessary to login in the mail server as you're otherwise not allowed to send any e-mails. Most internet service providers require some sort of authentication. The list of possible values below contains such methods like username password without sophisticated encryption or checksum or stronger methods which use MD5 or Sha1 hash algorithms.
 +
 
 
Possible values are:
 
Possible values are:
 
  smtpAuthNone,    smtpAuthPlain,    smtpAuthLogin,
 
  smtpAuthNone,    smtpAuthPlain,    smtpAuthLogin,
 
  smtpAuthCramMD5, smtpAuthCramSha1,  smtpAuthAutoSelect
 
  smtpAuthCramMD5, smtpAuthCramSha1,  smtpAuthAutoSelect
  
Most of them are self-explaining, except '''smtpAuthAutoSelect''' which causes the component to perform a smart detection of most secure authentication method possible.
+
Most of them are self-explaining. With AuthType '''smtpAuthAutoSelect''' the component performs a smart detection of most secure authentication method possible, however it won't fall back to smtpAuthNone.
  
see also RFC [http://rfc.net/rfc2554.html 2554], RFC [http://rfc.net/rfc1734.html 1734]
+
See also RFC [http://rfc.net/rfc2554.html 2554], RFC [http://rfc.net/rfc1734.html 1734]
  
 
== Example ==
 
== Example ==

Latest revision as of 06:06, 30 May 2009

Main page -> ICS component reference -> TSmtpCli -> AuthType

Definition

property AuthType: TSmtpAuthType;

Inherited from TCustomSmtpCli.AuthType

Description

Property AuthType specifies the authentication method to be used with method Auth. Authentication is necessary to login in the mail server as you're otherwise not allowed to send any e-mails. Most internet service providers require some sort of authentication. The list of possible values below contains such methods like username password without sophisticated encryption or checksum or stronger methods which use MD5 or Sha1 hash algorithms.

Possible values are:

smtpAuthNone,    smtpAuthPlain,     smtpAuthLogin,
smtpAuthCramMD5, smtpAuthCramSha1,  smtpAuthAutoSelect

Most of them are self-explaining. With AuthType smtpAuthAutoSelect the component performs a smart detection of most secure authentication method possible, however it won't fall back to smtpAuthNone.

See also RFC 2554, RFC 1734

Example

SmtpCli1.AuthType := smtpAuthAutoSelect;

Best practices

Recommended setting is smtpAuthAutoSelect.

How to