Re: Error with autentication NTLM - WeOnlyDo Discussion board

Re: Error with autentication NTLM (General questions)

by Gerard Llort, Tuesday, October 23, 2007, 17:30 (6241 days ago) @ woddrazen

This is the code (old VB6 version):

[code]oSMTP.LicenseKey = LICKEY_WODSMTP
oSMTP.Blocking = True

'Set Host and user
oSMTP.HostName = registryGetSetting(REGKEY_SMTP_HOSTNAME)
oSMTP.Login = registryGetSetting(REGKEY_SMTP_LOGIN)
oSMTP.Password = registryGetSetting(REGKEY_SMTP_PASSWORD)

'Authentication/Security options (the same values of the wodSMTP)
oSMTP.Authentication = CInt(Val(registryGetSetting(REGKEY_SMTP_AUTHENTICATION, 1 )))
oSMTP.Security = CInt(Val(registryGetSetting(REGKEY_SMTP_USESSL, 0 )))

'Port (if not informed, use the default port of the instance)
lPort = CLng(Val(registryGetSetting(REGKEY_SMTP_PORT, 0 )))
If CLng(Val(lPort)) > 0 Then oSMTP.Port = lPort

'Generate the Text/HTML mail
oSMTP.CreateTextHtml tMail.FromAddress, tMail.ToAddress, tMail.Subject, tMail.Body, tMail.TextBody

'Attachments
For i = 1 To tMail.AttachmentCount
oSMTP.Message.Attach tMail.Attachments(i)
Next i

'Send the message
oSMTP.SendMessage[/code]

...and the data in the registry (that produces the error) are:

Host -> 192.168.1.10
Port -> 25
Authentication -> AuthNTLM
Security -> SecurityNone
User -> OSTesadmin (OST is the domain)
Pwd -> XXXXX

Any idea?

Thank's again,

Gerard Llort
Offshore Tech S.L.


Complete thread: