Host (Email property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{Template:Email:Host subtitle}}
This method retrieves or sets the host name of the SMTP server host.
This method retrieves or sets the host name of the SMTP server host.
==Host syntax==
==Syntax==
<p class="pre"> %email:Host = hostname
{{Template:Email:Host syntax}}
%curr = %email:Host
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 19: Line 17:
   
   
</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>The initial value of this property is a null string.
<li>The initial value of this property is a null string.
Line 32: Line 30:
match the host value on the client port.
match the host value on the client port.
</ul>
</ul>
==See also==
{{Template:Email:Host footer}}

Revision as of 21:41, 5 July 2011

The host name of the SMTP server (Email class)


This method retrieves or sets the host name of the SMTP server host.

Syntax

%currentString = email:Host email:Host = newString

Syntax terms

%email A previously declared Email object.
hostname The host name or dotted IP address of the SMTP server host.
%curr A string or longstring variable to contain the current value of the

Host property.

Usage notes

  • The initial value of this property is a null string. This means that Mail method invocations will try to use the REMOTE host name (if present) from the Janus client socket port definition. If the Janus client port does not have a REMOTE definition that specifies a TCP host name, you must set this Host property to the correct value for the target SMTP server host.
  • If you set the Host property value, and the Janus client socket port you are using has a host value defined, your Host property value must match the host value on the client port.

See also