Re: Need some guidance on a CFPOP question

2000-12-05 Thread pan





 Ok,  can i do this to determine if someone has logged in correctly???
 
 cfpop 
 SERVER="1.1.1.1"
 USERNAME="[EMAIL PROTECTED]"
 PASSWORD="password"
 NAME="check"
 

You wouldn't use username@domain, just username.
LogIn to a pop3 server is done with acctame and password.


 cfif check.RecordCount EQ 1
Good Login, Proceed
 cfelse
Bad Login, Redirect
 /cfif
 
 Can i do that record check?
 

Yes - but it's better to wrap the cfpop in a cftry/cfcatch trap.
Your code assumes no error from the pop3 server. Cftry
will catch things like bad password; poplock; no response, etc.
If there is no error, then the name attribute (in your case "check")
is a query - with all the attendant properties of a query.

also - recordcount froma cfpop query is the count of
messages available for the current login - and what if there is
a good login but no messages ...

use the cftry/cfcatch wrapper - it will provide you all you need.

Pan



~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Need some guidance on a CFPOP question

2000-12-04 Thread KJis18

Ok,  can i do this to determine if someone has logged in correctly???

cfpop 
SERVER="1.1.1.1"
USERNAME="[EMAIL PROTECTED]"
PASSWORD="password"
NAME="check"

cfif check.RecordCount EQ 1
   Good Login, Proceed
cfelse
   Bad Login, Redirect
/cfif

Can i do that record check?

kev


~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists