Port (Email property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "This method retrieves or sets the TCP port number of the SMTP server. ==Port syntax== <p class="pre"> %email:Port = portnum %curr = %email:Port </p> ===Syntax terms=== <tabl...")
 
m (Created page with "This method retrieves or sets the TCP port number of the SMTP server. ==Port syntax== <p class="pre"> %email:Port = portnum %curr = %email:Port </p> ===Syntax terms=== <tabl...")
Line 1: Line 1:
{{Template:Email:Port subtitle}}
This method retrieves or sets the TCP port number of the SMTP server.
This method retrieves or sets the TCP port number of the SMTP server.
==Port syntax==
==Syntax==
<p class="pre"> %email:Port = portnum
{{Template:Email:Port syntax}}
%curr = %email:Port
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 18: Line 16:
   
   
</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>The initial value of the <var>Port</var> property is zero.
<li>The initial value of the <var>Port</var> property is zero.
Line 32: Line 30:
<li>The "well-known" port number for SMTP connections is 25.
<li>The "well-known" port number for SMTP connections is 25.
</ul>
</ul>
==See also==
{{Template:Email:Port footer}}

Revision as of 21:41, 5 July 2011

TCP port number of the SMTP server (Email class)


This method retrieves or sets the TCP port number of the SMTP server.

Syntax

%currentPort = email:Port email:Port = newPort

Syntax terms

%email 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.

See also