LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Script - UTL_MAIL - SQL PLUS (https://www.linuxquestions.org/questions/linux-newbie-8/linux-script-utl_mail-sql-plus-4175443279/)

sharon@msd321.com 12-28-2012 01:23 PM

Linux Script - UTL_MAIL - SQL PLUS
 
Hello,
I can get UTL_MAIL to work in sqlplus, but can not get it to
work in a script. I don't know if anyone on the Linux forum can help, but if you can, I would much appreciate it. Thanks in advance! The following is the script:


/home/oracle/product/11g/bin/sqlplus "/ as sysdba" << EOF
begin
execute immediate 'alter session set smtp_out_server = ''10.0.0.45''';
utl_mail.send(sender => 'Computer_Support@msd321.com',
recipients => 'sharon@msd321.com',
subject => 'Test Email from script 5',
message => 'Hello World',
mime_type => 'text; charset=us-ascii');
end;
exit;
EOF

kbp 01-07-2013 07:54 PM

Do you get an error message at all ?


All times are GMT -5. The time now is 10:42 AM.