About asMail
Overview

asMail is an Oracle PL/SQL-based utility for retrieving emails from any pop3 or imap compliant mailbox and loading their contents and attachments into tables in your database.

Features

• Compatible with POP3 and IMAP mailboxes
• Email content and attachments loaded into two related tables (EMAIL_DETAIL and EMAIL_ATTACHMENT)
• Archive emails to a mail folder of your choice
• Includes a tracing routine for troubleshooting and diagnostics

Requirements

The target DB must have the JVM (JServer option installed) and have the appropriate JavaMail API loaded (mail.jar and activation.jar). Tested on 9i R2 but should run on all DB versions with a JVM installed.

API Specification
AS_MAIL.RETRIEVE_MAIL Procedure

retrieve_mail
 (
 mailbox_type IN VARCHAR2,
 mailserver_address IN VARCHAR2,
 account_name IN VARCHAR2,
 account_pass IN VARCHAR2,
 max_retrieve IN NUMBER DEFAULT NULL,
 mailserver_port IN NUMBER DEFAULT -1,
 archive_folder IN VARCHAR2 DEFAULT NULL
 );

ParameterDescription
mailbox_typeThe email mailbox protocol, ie imap or pop3.
mailserver_addressThe mailserver hostname or IP address.
account_nameThe email account name.
account_passThe email account password.
max_retrieveSpecifies the number of emails to download, default is all (null).
mailserver_portThe mailserver port number. If not specified, defaults to 25 for pop3 or 143 for imap.
archive_folderSpecifies the mail folder that retrieved emails shoule be moved to. Applies to imap accounts only.

Demo
Try out the API for yourself here!
Download
Dowload the free version here! Please note that this version does not include the email attachment handling feature.
Order Full Version
To purchase the full version of the utility complete with the attachment handling feature, installation and usage instructions, please email us. Thank you.

© Apexskins Ltd 2008