If Session("LoginSuccess")=1 Then If Left(Request("urlOfAttach"), 10) = "/maildata/" Then Dim download Set download = Server.CreateObject("CMailCOM.POP3.1") download.Download Request("urlOfAttach"), Response Set download = Nothing Response.End End If End If