Email methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 15: | Line 15: | ||
<span class="term">email</span><span class="literal">:[[Host (Email property)|Host]]</span> <span class="literal">= </span><span class="term">newString</span></p> | <span class="term">email</span><span class="literal">:[[Host (Email property)|Host]]</span> <span class="literal">= </span><span class="term">newString</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">email</span><span class="literal">:[[Mail (Email function)|Mail]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Port=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CancelOnError=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">email</span><span class="literal">:[[Mail (Email function)|Mail]]</span><span class="squareb">[</span><span class="literal">(</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="String">Port=</span><span class="squareb">]</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="squareb">[</span><span class="literal" title="Number">CancelOnError=</span><span class="squareb">]</span> <span class="term" title="Number">number</span><span class="squareb">]</span><span class="literal">)</span><span class="squareb">]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%email</span><span class="literal"> =</span> <span class="literal">%(Email):[[New (Email constructor)|New]]</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%email</span><span class="literal"> =</span> <span class="squareb">[</span><span class="literal">%(Email)</span><span class="squareb">]</span><span class="literal">:[[New (Email constructor)|New]]</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentPort</span><span class="literal"> =</span> <span class="term">email</span><span class="literal">:[[Port (Email property)|Port]]</span> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">%currentPort</span><span class="literal"> =</span> <span class="term">email</span><span class="literal">:[[Port (Email property)|Port]]</span> | ||
<span class="term">email</span><span class="literal">:[[Port (Email property)|Port]]</span> <span class="literal">= </span><span class="term">newPort</span></p> | <span class="term">email</span><span class="literal">:[[Port (Email property)|Port]]</span> <span class="literal">= </span><span class="term">newPort</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">email</span><span class="literal">:[[Sender (Email subroutine)|Sender]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">email</span><span class="literal">:[[Sender (Email subroutine)|Sender]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | ||
<p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">email</span><span class="literal">:[[SetBody (Email subroutine)|SetBody]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Type=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Name=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Encoding=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | <p class="syntax" style="margin-bottom:0px; border-bottom:1px solid; border-left:1px solid; border-right:1px solid; border-top: none; margin-top:0px;"><span class="term">email</span><span class="literal">:[[SetBody (Email subroutine)|SetBody]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Type=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Name=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="comma">,</span> <span class="squareb">[</span><span class="literal" title="String">Encoding=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> |
Revision as of 00:42, 23 August 2011
The syntax for each of the Email class methods is shown below.
Square brackets indicate optional elements of the method invocation. See also the notation conventions for methods and the List of Email methods.
email:AddBCC( string, [string])
email:AddCC( string, [string])
email:AddHeader( string, string)
email:AddPart( string, [Type= string], [Name= string], [Encoding= string], - [Disposition= string], [Description= string])
email:AddRecipient( string, [string])
%currentString = email:Domain email:Domain = newString
%number = email:GetReplyCode
%string = email:GetReplyText
%currentString = email:Host email:Host = newString
[%number =] email:Mail[( [[Port=] string], [[CancelOnError=] number])]
%email = [%(Email)]:New
%currentPort = email:Port email:Port = newPort
email:Sender( string, [string])
email:SetBody( string, [Type= string], [Name= string], [Encoding= string])