These are chat archives for IndySockets/Indy

6th
Apr 2017
Justin
@klsyzzz
Apr 06 2017 05:40
hi got another question, The property TIdSMTP.Port, is it true that if useTLS then TLS will select a different port for connection? for example, if I assign port 25 to the TIdSMTP, when start TLS, does it using 25 or use different port like 587?
Remy Lebeau
@rlebeau
Apr 06 2017 17:46
@klsyzzz it depends on what you set UseTLS to. If you set UseTLS=utUseImplicitTLS and the Port is currently 25 or 587, the Port is changed to 465. If you set UseTLS=utUseExplicitTLS and the Port is currently 25 or 465, the Port is changed to 587. If you set UseTLS=utNoTLSSupport and the Port is currently 465 or 587, the Port is changed to 25. If you want to use a specific Port, set UseTLS first, then set the Port afterwards
Justin
@klsyzzz
Apr 06 2017 21:59
thanks @rlebeau, i'm using utUseExplicitTLS, so if the port currently is 587, it will use 587 no change, right?
Remy Lebeau
@rlebeau
Apr 06 2017 22:39
@klsyzzz yes
Justin
@klsyzzz
Apr 06 2017 23:35
thank you very much @rlebeau