Password Property
The password of the user account on the mail
server to be used for ESMTP authentication during connection (if AuthMethod>0).
If AuthMethod property has default value (AuthMethod=0),
this property is not used.
To avoid sending password as clear text, set AuthMethod=3. This
will enable secure CRAM-MD5 authentication. However, many SMTP servers
do not support it. See AuthMethod
property reference for details.
Value Type: | String | |
Parameters: | None |
Usage example:
Dim Mailer 'Using visual basic to create object Set Mailer = CreateObject("MailBee.SMTP") 'Using ASP to create object 'Set Mailer = Server.CreateObject("MailBee.SMTP") 'In ASP use Response.Write instead of MsgBox Mailer.LicenseKey = "put your license key here" Mailer.ServerName = "mailserver.com" Mailer.UserName = "MyName" Mailer.Password = "MyPassword" Mailer.AuthMethod = 3 ' Using CRAM-MD5 secure authentication Mailer.Connect If Mailer.Connected Then MsgBox "Connected using secure ESMTP authentication" Mailer.Disconnect End If
See Also:
UserName
Property
AuthMethod Property
ServerName Property
Connect Method
Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.