Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Oracle trigger

 
shivani anand
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we create e-mail from oracle trigger? If yes How?
shivani
 
Bjarki Holm
Author
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shivani,
I'm not sure if I understand you correctly, but one possible approach is to load a stored JavaMail program in the Oracle database, and have a trigger call a PL/SQL wrapper procedure that invokes the JavaMail, and effectively sends an e-mail message.
P.S. I covered this topic in detail in a book called Professional Oracle 8i Application Programming (ISBN: 1861004842), published by Wrox Press.

------------------
Bjarki Holm
Author of Professional Java Data
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!