MailMill COM 1.0 Documentation

AuthType Mail Property:
Gets or sets an MM_AUTH_TYPE value that specifies the method to be authenticate on the SMTP Server.
Default value:
mmAuthNone
Syntax:
[C++]
HRESULT get_AuthType(MM_AUTH_TYPE *pVal);
HRESULT put_AuthType(MM_AUTH_TYPE newVal);
[VB]
Property AuthType As MM_AUTH_TYPE
Remark:
The AuthType property is used by MailMill during the Send process to specify how to authenticate with the SMTP Server. To use the interactive user authentication, set the AuthType property to mmAuthNtml and leave the AuthLogin and AuthPassword properties empty.
Example:
[VB]
' Assume oMail is a built Mail object

' No authentication
oMail.AuthType = mmAuthNone
oMail.Send

' Clear Text authentication
oMail.AuthType = mmAuthBasic
oMail.Login = "login"
oMail.Password = "password"
oMail.Send

' Windows authentication
oMail.AuthType = mmAuthNtlm
oMail.Login = "domain\account"
oMail.Password = "password"
oMail.Send

' Windows interactive user authentication
oMail.AuthType = mmAuthNtlm
oMail.Send
See also:
MailMill Component | Mail Object

 

Copyright © Active+ Software 2005 - All rights reserved