GetReplyText (Email function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "This non-settable method retrieves the last response from the SMTP server. ==GetReplyText syntax== <p class="pre"> %text = %email:GetReplyText </p> ===Syntax terms=== <table cl...")
 
m (Created page with "This non-settable method retrieves the last response from the SMTP server. ==GetReplyText syntax== <p class="pre"> %text = %email:GetReplyText </p> ===Syntax terms=== <table cl...")
Line 1: Line 1:
{{Template:Email:GetReplyText subtitle}}
This non-settable method retrieves the last response from the SMTP server.
This non-settable method retrieves the last response from the SMTP server.
==GetReplyText syntax==
==Syntax==
<p class="pre"> %text = %email:GetReplyText
{{Template:Email:GetReplyText syntax}}
</p>
===Syntax terms===
===Syntax terms===
<table class="syntaxTable">
<table class="syntaxTable">
Line 14: Line 14:
   
   
</td></tr></table>
</td></tr></table>
==Usage Notes==
==Usage notes==
<ul>
<ul>
<li>If the <var>[[Mail (Email function)|Mail]]</var> method
<li>If the <var>[[Mail (Email function)|Mail]]</var> method
Line 22: Line 22:
returns the numeric value associated with the message text.
returns the numeric value associated with the message text.
</ul>
</ul>
==See also==
{{Template:Email:GetReplyText footer}}

Revision as of 21:41, 5 July 2011

Retrieve the last response (Email class)


This non-settable method retrieves the last response from the SMTP server.

Syntax

%string = email:GetReplyText

Syntax terms

%text A string or longstring variable to contain the

server response.

%email A previously declared Email object.

Usage notes

  • If the Mail method has not yet been invoked for the %email object, GetReplyText returns the null string.
  • GetReplyCode returns the numeric value associated with the message text.

See also