Solved

sending mail from PL/SQL code

Posted on 1998-10-30
4
742 Views
Last Modified: 2008-03-06
How can I send mail from PL/SQL code ?
(Oracle 8 - NT 4).
How can I call an exe or dll from PL/SQL code  (assuming I have an exe that can send mail from a text file)
0
Comment
Question by:nimrodg080397
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
eracero earned 200 total points
ID: 1082374
There is an Oracle product: Oracle*Mail that let you send e-mail using a procedure of a supplied package.
This package/procedure is DBMS_MAIL.SEND(from, to, cc, bcc, subject, reply_to, body);
(all parametes are VARCHAR2).

If you haven't this Product, you can call a exe from PL/SQL usin the DBMS_PIPE package. (I don't know if Oracle8 for NT comes with a better option, like the HOST commad).
If no, you will need a PRO*C (or any othe language that let you perform an OS call) program that use a pipe to listen for incoming messages from DBMS_PIPE, and then execute them.

Hope this helps!!!

0
 
LVL 3

Expert Comment

by:mgokman
ID: 1082375
Check calling external procedures in Oracle8 Applications Developers Guide.
0
 

Author Comment

by:nimrodg080397
ID: 1082376
I'm sorry, but no one in ORACLE (in my country) knows about Oracle*Mail product. Can you add more details about it so I could buy it ?
0
 
LVL 1

Expert Comment

by:eracero
ID: 1082377
I don't have that product installed in my rdbms. I read about it in the book "Oracle PL-SQL programming, O'Reilly (First edition 1995)."  
As I told you before, another way you have to send mail from the operating system is using the DBMS_PIPE or calling to external procedures (like mgokman recommends).

0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Action link in Union Reports Not Working in OBIEE 11g 1 88
dates - loop 12 67
Read only access to a Procedure in oracle? 4 66
Create table from select - oracle 6 41
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question