Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: ESMTP - Does Indy10 support this



Permlink Replies: 1 - Last Post: Jul 29, 2016 1:27 PM Last Post By: Remy Lebeau (Te...
Colin Maharaj

Posts: 122
Registered: 12/2/99
ESMTP - Does Indy10 support this
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 29, 2016 10:56 AM
I see it is also on a port 587 at times.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: ESMTP - Does Indy10 support this
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jul 29, 2016 1:27 PM   in response to: Colin Maharaj in response to: Colin Maharaj
Colin wrote:

I see it is also on a port 587 at times.

The TIdSMTP component supports ESMTP. Make sure the UseEHLO property is
true (which it is by default). After a successful Connect(), the Capabilities
property will contain a list of features detected in the ESMTP greeting.
Indy implements only a few features exposed by ESMTP, but you can implement
other features manually as needed.

Port 587 is the Explicit TLS (STARTTLS) port. That has nothing to do with
ESMTP itself, but ESMTP is needed to detect STARTTLS support on the server
(there is even a SupportsTLS property if STARTTLS is detected by ESMTP).

TIdSMTP does not use port 587 automatically, you have to set it manually:

1. Assign an SSLIOHandler component, such as TIdSSLIOHandlerSocketOpenSSL,
to the TIdSMTP.IOHandler property.

2. set the TIdSMTP.UseTLS property to utUseExplicitTLS.

3. set the TIdSMTP.Port property to 587.

--
Remy Lebeau (TeamB)
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02