home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / ASP / ASPFusion_Basic_Suite / examples / cf / advpop3 / act_status.cfm < prev    next >
Encoding:
ColdFusion Markup Language  |  2001-08-12  |  710 b   |  26 lines

  1. <html>
  2. <head>
  3.     <title>Status</title>
  4. </head>
  5. <body>
  6. <cfobject class="AdvPOP3.POP3" action="CREATE" name="AdvPOP3">
  7. <cfset AdvPOP3.ServerName = #Form.ServerName#>
  8. <cfset AdvPOP3.UserName = #Form.UserName#>
  9. <cfset AdvPOP3.Password = #Form.Password#>
  10. <cfif Len(Trim(Form.Port)) neq 0>
  11.     <cfset AdvPOP3.Port = #Form.Port#>
  12. </cfif>
  13. <cfif Len(Trim(Form.Timeout)) neq 0>
  14.     <cfset AdvPOP3.Timeout = #Form.Timeout#>
  15. </cfif>
  16. <cfset Result = AdvPOP3.Status()>
  17. <cfif #AdvPOP3.IsError# Eq 1 >
  18.     <cfoutput>#AdvPOP3.ErrorReason#</cfoutput> <br>
  19. <cfelse>
  20.     <cfoutput>Mails Count =  #Result.Count# <br>
  21.     Mails Size =  #Result.Size# <br></cfoutput>
  22. </cfif>
  23. <A HREF="dsp_status.htm">Back</A>
  24. </body>
  25. </html>
  26.