بتاريخ: 6 أكتوبر 201510 سنة comment_266554 السلام عليكم ورحمة اللههل إستخدام البروسيجر لإرسال إيميل مختلف في قاعدة البيانات 10g عن 11gCREATE OR REPLACE PROCEDURE sendmail ( sender IN VARCHAR2, recipient IN VARCHAR2, subject IN VARCHAR2, message IN VARCHAR2 ) IS crlf VARCHAR2(2):= UTL_TCP.CRLF; connection utl_smtp.connection; mailhost VARCHAR2(30) := 'mailhost.come'; header VARCHAR2(1000);BEGIN connection := utl_smtp.open_connection(mailhost,27); header:= 'Date: '||TO_CHAR(SYSDATE,'dd Mon yy hh24:mi:ss')||crlf|| 'From: '||sender||''||crlf|| 'Subject: '||subject||crlf|| 'To: '||recipient||crlf|| 'CC: '||ccrecipient; utl_smtp.helo(connection, mailhost); utl_smtp.mail(connection, sender); utl_smtp.rcpt(connection, recipient); utl_smtp.rcpt(connection, ccrecipient); utl_smtp.open_data(connection); -- -- utl_smtp.write_data(connection, header); -- -- The crlf is required to distinguish that what comes next is not simply part of the header.. -- utl_smtp.write_data(connection, crlf ||message); utl_smtp.close_data(connection); utl_smtp.quit(connection);END; عند عمل Run للبروسيجر يعطي الخطأ التالي ORA-24247) – Network Access Control List (ACL).ممكن أحد يساعدني تقديم بلاغ
انضم إلى المناقشة
يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.