Email methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 14: | Line 14: | ||
<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">%currentString</span><span class="literal"> =</span> <span class="term">email</span><span class="literal">:[[Host (Email property)|Host]]</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">%currentString</span><span class="literal"> =</span> <span class="term">email</span><span class="literal">:[[Host (Email property)|Host]]</span> | ||
<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">% | <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">%rc</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="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">%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> |
Revision as of 19:27, 8 February 2012
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
[%rc =] 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])