Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Message Interface SaveAttachments Method

The SaveAttachments method saves e-mail attachments to a specified directory on the server.

Message Interface SaveAttachments Arguments

Directory path on the Server
The complete path name to the directory on the server where attachments are to be saved.

Note icon Note In a shared Web hosting environment, such as with an ISP, you might not know the directory structure above the document root for your virtual host. In this situation, you cannot specify an absolute path name for the file, so you must use the Server.MapPath directive instead.
Message Interface SaveAttachments Example
Set pop3 = Server.CreateObject("Chili.Pop3.1")
pop3.Connect "mail.foo.com", "myuserid", "mypasswd"
For each item in pop3.Messages
  For each Cc in Item.Cc
    MsgBox Cc
    next
  next
pop3.Reset
pop3.Disconnect


ContentsPreviousNextIndex