|

DOWNLOAD
Reference
Chilkat Log Reference
Versions
SMTP Authentication
Some SMTP servers require a login and password before
allowing you to send mail. Chilkat Mail provides properties where
you can set the login and password: SmtpUsername and SmtpPassword.
These properties should be set if the SMTP server
requires authentication. If the SMTP server does not require authentication,
the properties are ignored and not used.
SMTP servers offer a variety of ways to login, some
of which are more secure than others. Chilkat Mail handles the
most common login methods:
- LOGIN
- PLAIN
- CRAM-MD5
- NTLM
The following login methods are planned for future versions:
- DIGEST-MD5
- GSSAPI
- KERBEROS_V4
If your SMTP server requires authentication, Chilkat Mail will
choose the most secure of the offered authentication methods.
The chosen authentication method is sent to the Chilkat Log object.
Below is an example in Visual Basic that sends an email and provides
an SMTP login/password:
Dim mailman As Object
Set mailman = CreateObject("ChilkatMail.ChilkatMailMan")
' Get the free unlock-code from http://www.chilkatsoft.com
mailman.UnlockComponent "unlock-code"
mailman.SmtpHost = "smtp.mail.yahoo.com"
mailman.SmtpUsername = "chilkat_software"
mailman.SmtpPassword = "my_password"
Set email = New ChilkatEmail
email.AddTo "Bill Yahoo", "yahoo@chilkatsoft.com"
email.Subject = "Hello! This is a test e-mail"
email.Body = "This is an email from Chilkat Software."
email.From = "chilkat_software@yahoo.com"
mailman.SendEmail email
Set email = Nothing
Set mailman = Nothing
|