home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / exampleapps / email / refresh.cfm < prev    next >
Encoding:
Text File  |  2001-06-13  |  1.1 KB  |  41 lines

  1. <CFTRY>
  2.     <CFPOP ACTION="GETHEADERONLY"
  3.            NAME="Messages"
  4.            SERVER="#Session.POPserver#"
  5.            TIMEOUT="120"
  6.            USERNAME="#Session.Username#"
  7.            PASSWORD="#Session.Password#">
  8.     <CFCATCH TYPE="ANY">
  9.         <CFINCLUDE TEMPLATE="_header.cfm">
  10.     
  11.         <P><FONT FACE="Helvetica" SIZE="+1"><B>Oops...!</B></FONT></P>
  12.         
  13.         <FONT FACE="Helvetica" SIZE="-1"><P>
  14.     
  15.         <CFIF CFCatch.Detail CONTAINS "password">
  16.             The username and/or password you supplied was invalid!
  17.         <CFELSEIF CFCatch.Detail CONTAINS "timeout">
  18.             CrazyCab is tired of waiting for <CFOUTPUT>#Session.POPserver#</CFOUTPUT>
  19.             to respond.
  20.         <CFELSE>
  21.             CrazyCab has encountered the following error:</P>
  22.             
  23.             <P><TABLE BORDER="1" CELLPADDING="5" CELLSPACING="0" BGCOLOR="#FFFFCC">
  24.             <TR>
  25.                 <TD><TT><CFOUTPUT><B>#CFCatch.Message#</B><BR><BR>#CFCatch.Detail#</CFOUTPUT></TT></TD>
  26.             </TR>
  27.             </TABLE></P>
  28.         </CFIF>
  29.  
  30.         <P>Please <A HREF="login.cfm">log in</A> again.
  31.     
  32.         </FONT></P>
  33.     
  34.         <CFINCLUDE TEMPLATE="_footer.cfm">
  35.         <CFABORT>
  36.     </CFCATCH>
  37. </CFTRY>
  38.  
  39. <CFSET Session.Messages = Messages>
  40.  
  41. <CFLOCATION URL="messagelist.cfm" ADDTOKEN="NO">