Skip to Main Content
  • Questions
  • processing of data captured from E-mail

Breadcrumb

Question and Answer

Tom Kyte

Thanks for the question, Raja.

Asked: September 11, 2000 - 10:40 pm UTC

Last updated: September 11, 2000 - 10:40 pm UTC

Version: 8.1.5

Viewed 1000+ times

You Asked

Hi Tom,

Is there any way(tools etc) by which we can capture data(based on parameters),send to an e-mail address,process it/query from Oracle database and then send the reply to the sender(as an e-mail) automatically.

I'm refering to a situation somewhat similar to that of Microsoft knowledge-base,where one writes the query id in the subject line and gets a reply of the same via return mail automatically.


Thanks and regards,


Raja Saha

and Tom said...

Sure, using Oracle8i, release 8.1.5, you can certainly write a Java stored procedure that uses POP3 or IMAP4 to read an inbox, parse the subject line and send a mail. You would use dbms_job to schedule this stored procedure to execute on a recurring basis, say every 5 minutes or so.


See

</code> http://asktom.oracle.com/pls/asktom/f?p=100:11:::::P11_QUESTION_ID:255615160805
for further details.

If you do not have Java in the database, you could use external procedures as well -- written in C.  See 
http://docs.oracle.com/cd/A81042_01/DOC/appdev.816/a76939/adg11rtn.htm#1656 <code>
for details on that.





Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library