Karl Blessing
Programmer
because I dont have the ability to write to the drive in my ASP ( I dont think my webhoster's allow it, but I'll ask later) I am using JMail, I want to be able to allow the user to download or view attachments this is how I am doing it so far with an ASP that I Send the Message # and the Attachment #, then it sets itself as the content type of the attachment and responds with the attachment data, here is the file.
Karl
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)
Code:
<%@ Language=VBScript %>
<%
if (Session("uid") = "") or (Session("pwd")= "") then
Response.Write "Your UserID and Password Sessions have expired please relogin"
else
Set pop3 = Server.CreateObject( "JMail.POP3" )
pop3.Connect Session("uid"), Session("pwd"), "mail.kb244.com"
end if
if pop3.count > 0 then
set msg = pop3.Messages.item(Request("index"))
Set Attachments = msg.Attachments
Set at = Attachments(Request("aindex"))
Response.ContentType = at.ContentType
Response.Write at.Data
end if
pop3.Disconnect
%>
kb244@kb244.com
Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)