EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Mailing with TElSMTPClient using a SMTPServer with AUTH NTLM

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
Posted: 08/24/2012 05:01:39
by Josep Saumell (Standard support level)
Joined: 04/11/2008
Posts: 15

I would like to know if it's possible to send a mail with TElSMTPClient class connecting to a SMTP server that only accepts AUTH NTLM authentication.

If is possible, is there any example "How to do" that?

Posted: 08/24/2012 05:22:41
by Ken Ivanov (EldoS Corp.)


Thank you for getting in touch with us.

TElSMTPClient supports NTLM authentication via SASL. To make TElSMTPClient use NTML, please set the Username and Password properties as usual and add 'NTLM' to the list of supported SASL mechanisms:

Client.SASLMechanism['NTLM'] := true;
Posted: 08/24/2012 06:01:12
by Josep Saumell (Standard support level)
Joined: 04/11/2008
Posts: 15


It's necessary to include the username and password credentials inside the code in plain text?
It's possible to get it from current windows session in any way?

And another question: I'm working with SecureBlackBox v.8 and i could'nt find "SASLMechanism" property. It this a new property of v9? Or I'm doing something wrong...

Thanks again.
Posted: 08/24/2012 06:50:14
by Ken Ivanov (EldoS Corp.)


Oops, I was a bit too quick with the answer - indeed, you can omit specifying the Password property when using NTLM authentication, as the component picks the credentials pointer from the current Windows session.

SASL support has only been added in SBB 9, so I am afraid it is not available with SBB 8.



Topic viewed 1057 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!