Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFPOP

Status
Not open for further replies.

vasugnv

Programmer
Oct 27, 2000
3
IN
Hi Guys

I am not able to read mails from the mail server (MS Exhange)
An unknown exception is raised when executing the following
code fragment

<cftry>
<cfoutput>
<cfpop
SERVER=#trim(MailServerName)#
USERNAME=#trim(UserName)#
PASSWORD=#trim(UserPassword)#
ACTION=&quot;GETHEADERONLY&quot;
NAME=&quot;messages&quot;>
this is After mail
<p align=center>
Number of messages = #messages.RecordCount#
</cfoutput>
<cfcatch type=&quot;Any&quot;>
<h3> Account locked out or Mail server is down... <br></h3>
<h4>Please contact the Admin.</h4>
<Cfabort>
</cfcatch>
</cftry>
I am passing proper values into MailServerName, UserName and UserPassword variables..

But the programe is not executing as expected.

When ever i give a username which does not exist the exception is caught properly. But if i give an existing username -- an unknown exception is raised

Please get me out of this problem..

Regards
GNV Srinivas
gnvsrinivas@essemm.co.in


 
Try this.. instead of using server =#trim(MailServerName)#
just use server = #form.MailServerName# and the same for the others.

Depending on where you entered your login information. If you entered into a form that directs to this one when you hit Login from the form, then this should work, that is how I have one set up and I have no problems.

You may also want to consider making your servername a session variable.


Does this help?

HappyB
 
Thanks for your response. I could fix my problem after applying the hot fix from alliere site.
 
Hay,
Is there any way of knowing the number of un-read mails.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top