Overview |
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:
- POP3 (retrieve) Messages
- Multiple File Attachments
- File attachments support MIME and UUEncoding
- US ASCII and ISO-8859-1 character sets
- Exposing standard headers via properties and special properties via a method.
To use this ASP component move the .jar file to classpath .
Simple Retrieve Mail Example
Using the component is as simple as
- Creating the object
- Setting a few properties
- Calling the Retrieve method
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.ClosePop3The 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.ClosePop3You 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.BodyTextAnd 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-2000, Halcyon Software Inc. All rights reserved.