erreur lors de l'utilisation d'UTL_SMTP
Bonjour à tous,
Je suis sur une Red Hat EL 3.0 sur laquelle est installée un oracle 8.1.7.4
J'ai lu le post ci contre :http://www.developpez.net/forums/sho...light=utl_smtp
mais lorsque j'utilise la procédure (html_email citée) , j'ai une erreur à la création de mon trigger (qui fait appel à la procédure) :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| CREATE OR REPLACE TRIGGER SYS.TRIGGER_TEST_1
AFTER LOGON
ON DATABASE
declare
l_osuser varchar2(30);
l_cnt number;
l_max number := 0;
begin
select substr(osuser,1,9) into l_osuser
from sys.v_$session
where audsid=(select userenv('sessionid') from dual);
if ( l_osuser='user1' )
then
exec html_email(p_to => 'user2@domain1.dom', p_from => 'oracle@akasha', p_subject => 'SUJET', p_text => 'MAIL VERSION TEXTE', p_html => 'MAIL VERSION HTML', p_smtp_hostname => 'servermail1.domain1.dom', p_smtp_portnum => '25');
end if;
end; |
Le message d'erreur est le suivant :
Code:
1 2 3 4 5 6
| TRIGGER SYS.TRIGGER_TEST_1
On line: 11
PLS-00103: Encountered the symbol "HTML_EMAIL" when expecting one of the following:
:= . ( @ % ;
The symbol ":=" was substituted for "HTML_EMAIL" to continue. |
Est ce trop vaste ou vous faut-il plus d'informations pour m'aider?
Merci
Jonathan