TSmtpCli.Port
Main page -> ICS component reference -> TSmtpCli -> Port
Definition
property Port: integer;
Description
The port property tells the Smtp client component on which port on the server side a Smtp server is listening for incoming e-mail requests. The default port address of 25 is preassigned and normally does not need to be changed.
Example
Best practices
If you have a configuration screen for the Smtp server to be used for sending e-mails you should give the user the ability to configure the port just in case some e-mail server does not use the standard port 25.