![]() |
iASP_POP3 Component |
|
||||
This section demonstrates how to use iASP_POP3 component to retrieve and delete mail from any standard POP3 server via a Web page. It exposes message headers via properties and handles decoding file attachments. Features include:
To use this ASP component move the .jar file to classpath . Simple Retrieve Mail ExampleUsing the component is as simple as
The following code demonstrates how to use iASP_POP3 from VBScript. Set mail = Server.CreateObject("POP3svg.Mailer")
mail.RemoteHost = "mailhost.localisp.net"
mail.UserName = "myname"
mail.Password = "mypassword"
mail.OpenPop3
rem We could do multiple retrieves here but this demo only shows the
rem selected message.
mail.MailDirectory = "d:\usermail\myname"
mail.RetrieveToFile 1, "1.txt"
mail.ClosePop3
The file d:\usermail\myname\1.txt now holds the complete message text for this message. You could optionally do the following: Set mail = Server.CreateObject("POP3svg.Mailer")
mail.RemoteHost = "mailhost.localisp.net"
mail.UserName = "myname"
mail.Password = "mypassword"
mail.OpenPop3
rem We could do multiple retrieves here but this demo only shows the
rem selected message.
mail.Retrieve 1
mail.ClosePop3
You can now use mail's properties to examine each part of the message. For example: mail.MessageID mail.Date mail.Subject mail.FromName mail.FromAddress mail.BodyText And so on, contain the respective message properties. If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com. |
||||
|
||||
Copyright © 1998-2002, Halcyon Software Inc. All rights reserved. |