Port (Email property)
This method retrieves or sets the TCP port number of the SMTP server.
Port syntax
%email:Port = portnum %curr = %email:Port
Syntax terms
A previously declared Email object. | |
portnum | The target server TCP port number to which the SMTP connection request is sent. |
%curr | A numeric variable to contain the current value of the Port property. |
Usage Notes
- The initial value of the Port property is zero. This means that Mail method invocations will try to use the REMOTE port number (if present) from the Janus client socket port definition. If the Janus client port does not have a REMOTE definition that specifies a TCP port number, you must set this Port property to the correct value for the target SMTP server.
- If you set the Port property value, and the Janus client socket port you are using has a TCP port defined, your Port property value must match the client port value.
- The "well-known" port number for SMTP connections is 25.