Anda di halaman 1dari 1

create or replace procedure mail_send_test as smtp_server varchar2(50); c utl_smtp.connection; begin smtp_server := 'mailrelay.in.tesco.org'; c := utl_smtp.open_connection(smtp_server,25); dbms_output.

put_line ('connection success'); end; / begin dbms_network_acl_admin.create_acl ( acl => 'mailrelay_acl.xml', description => 'ACL for user to connect to SMTP Server', principal => 'RFSRW01', is_grant => TRUE, privilege => 'connect'); end; / commit; begin dbms_network_acl_admin.assign_acl ( acl => 'mailrelay_acl.xml', host => 'mailrelay.in.tesco.org', lower_port => 25); end; / commit; begin dbms_network_acl_admin.add_privilege ( acl => 'mailserver_acl.xml', principal => 'RFSRW01', is_grant => TRUE, privilege => 'connect'); end; / commit; ================================================================================ ======================= http://unixnair.blogspot.in/2011/02/ora-24247-when-trying-to-send-email.html