Email methods syntax: Difference between revisions
m (Automatically generated page update) |
m (Automatically generated page update) |
||
Line 5: | Line 5: | ||
<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">:[[AddCC (Email subroutine)|AddCC]]</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">:[[AddCC (Email subroutine)|AddCC]]</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">:[[AddHeader (Email subroutine)|AddHeader]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="term" title="String">string</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">:[[AddHeader (Email subroutine)|AddHeader]]</span><span class="literal">(</span> <span class="term" title="String">string</span><span class="comma">,</span> <span class="term" title="String">string</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">:[[AddPart (Email subroutine)|AddPart]]</span><span class="literal">(</span> <span class="term" title="String"> | <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">:[[AddPart (Email subroutine)|AddPart]]</span><span class="literal">(</span> <span class="term" title="String">content</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="comma">,</span> - | ||
<span class="squareb">[</span><span class="literal" title="String">Disposition=</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">Description=</span> <span class="term" title="String">string</span><span class="squareb">]</span><span class="literal">)</span></p> | <span class="squareb">[</span><span class="literal" title="String">Disposition=</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">Description=</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">:[[AddRecipient (Email subroutine)|AddRecipient]]</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">:[[AddRecipient (Email subroutine)|AddRecipient]]</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> | ||
Line 18: | Line 18: | ||
<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="squareb">[</span><span class="term">%number</span><span class="literal"> =</span><span class="squareb">]</span> <span class="term">email</span><span class="literal">:[[RemoveRecipient (Email function)|RemoveRecipient]]</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">:[[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"> | <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">content</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 21:57, 19 July 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( content, [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
[%number =] email:RemoveRecipient( string, [string])
email:Sender( string, [string])
email:SetBody( content, [Type= string], [Name= string], [Encoding= string])