الانتقال إلى المحتوى
View in the app

A better way to browse. Learn more.

مجموعة مستخدمي أوراكل العربية

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ارسال ايميل باللغة العربيبة من الداتابيز

Featured Replies

بتاريخ:

السلام عليكم و رحمة الله
الرجاء المساعدة في حل هذه المشكلة.

الايملات المرسلة من الداتابيز تعمل بشكل ممتاز باستثناء اللغة العربية تظهر على شكل "؟"
علما أن البارامترز هي:

select PARAMETERs, VALUE from nls_database_parameters;

"PARAMETERs","VALUE"
'NLS_LANGUAGE ','AMERICAN'
'NLS_TERRITORY ','AMERICA'

'NLS_CHARACTERSET ','AR8MSWIN1256'

NLS_RDBMS_VERSION ','10.2.0.4.0'

 

و البرنامج بـ 6i

جزاكم الله خيراً مقدماً
مصطفى البدوي

بتاريخ:

ألسلام عليكم

لو تقدر تضع الكود لكي نستفيد منه جميعا يا مهندس أحمد ...

بتاريخ:
  • كاتب الموضوع

These commands are not supported and WILL cause your database to be corrupted beyond repair - I hope you have a good backup of this database - readers of this thread should NOT attempt to use these commands to change the characterset of any database.

https://forums.oracle.com/forums/thread.jspa?messageID=10215495
https://forums.oracle.com/forums/thread.jspa?messageID=10227233

HTH
Srini


https://forums.oracle.com/forums/thread.jspa?threadID=2441218

  • بعد 2 أسابيع...
بتاريخ:

شككرا مهندس على تعاونكم.

 

وجااري تجربته.

 

 

 

تسلم يدك.

بتاريخ:
  • كاتب الموضوع

CREATE OR REPLACE package email_pkg as
       TYPE tab IS TABLE OF email_table%ROWTYPE
       INDEX BY BINARY_INTEGER;
       PROCEDURE headr(nam IN VARCHAR2, hdr IN VARCHAR2);
       PROCEDURE snd_email(sendr tab,rcpint tab,msg IN VARCHAR2);
end;
/
CREATE OR REPLACE package body email_pkg as
    c utl_smtp.connection;
  PROCEDURE headr(nam IN VARCHAR2, hdr IN VARCHAR2) AS
      BEGIN
      
      utl_smtp.write_data(c, nam || ': ' || hdr ||utl_tcp.CRLF);
    END headr;
  PROCEDURE snd_email(sendr tab,rcpint tab,msg IN VARCHAR2) as
 
    cnt NUMBER;
    TXT VARCHAR2(20000);
 
    CURSOR c_a IS
    SELECT     arabic_TEXT a_t
      FROM     arabic_text_table
     WHERE     col = trtrt;
     V_c_a c_a%ROWTYPE;
   
  BEGIN
   cnt := rcpint.COUNT;
   c := utl_smtp.open_connection(sendr(1).host);
   utl_smtp.helo(c, sendr(1).domain);
   utl_smtp.command( c, 'AUTH LOGIN');
   utl_smtp.command( c, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( '[email protected]'))));
   utl_smtp.command( c, utl_raw.cast_to_varchar2( utl_encode.base64_encode( utl_raw.cast_to_raw( 'Email Password' ))) );

    OPEN  c_a;
    FETCH c_a INTO V_c_a;
    CLOSE c_a;
 
    TXT := CHR(10)||'dfdfdfdfdfdfdfdf878787  898989  78778ghghgh  yujyyuthgh001'||CHR(10);
      TXT := TXT ||CHR(10)||'jkfgjkfg 56895689fgnm, fgm, vfgjkfg895689trnm, fg fgio8965 fio8956';

   FOR x in 1..cnt LOOP
   
     utl_smtp.mail(c, sendr(1).eemail);
     utl_smtp.rcpt(c, rcpint(x).email);
     utl_smtp.open_data©;
     headr('From',    sendr(1).user||'<'||sendr(1).email||'>');
     headr('To',      rcpint(x).user||'<'||rcpint(x).email||'>');
     headr('Subject', rcpint(1).subject);
   
     UTL_SMTP.write_data(C, 'Content-Type: text/html; charset="AR8MSWIN1256"' || UTL_TCP.crlf || UTL_TCP.crlf);

    UTL_SMTP.write_data(C, UTL_TCP.crlf);
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<HTML>');
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<BODY>');
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<pre>');

    utl_smtp.write_raw_data(C, utl_raw.cast_to_raw(MSG));
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '</pre>');
 
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<p dir="RTL">');
    utl_smtp.write_raw_data(C, utl_raw.cast_to_raw(V_c_a.a_t));
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '</p>');
 
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<BR>');
 
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<p dir="LTR">');
    utl_smtp.write_raw_data(C, utl_raw.cast_to_raw('dfdfdfdfdfdfdfdf878787  898989  78778ghghgh  yujyyuthgh001'));
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '<BR>');
    utl_smtp.write_raw_data(C, utl_raw.cast_to_raw('jkfgjkfg 56895689fgnm, fgm, vfgjkfg895689trnm, fg fgio8965 fio8956'));
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '</p>');
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '</BODY>');
    UTL_SMTP.write_data(C, UTL_TCP.crlf || '</HTML>');
    UTL_SMTP.write_data(C, UTL_TCP.crlf || UTL_TCP.crlf);
    
   END LOOP;
   utl_smtp.close_data( c );
   utl_smtp.quit( c );
       
  EXCEPTION
    WHEN utl_smtp.transient_error OR utl_smtp.permanent_error THEN
      utl_smtp.quit( c );
      raise_application_error(SQLCODE,'Fail ' || sqlerrm);
    WHEN OTHERS THEN
      utl_smtp.quit( c );
      raise_application_error(SQLCODE,'Fail ' || sqlerrm);
  END snd_email;
END email_pkg;
/


الرجاء ملاحظة أن تاجات الـ HTML تكتب في سطور منفصلة مثال
UTL_SMTP.write_data(C, UTL_TCP.crlf || '<HTML>');
UTL_SMTP.write_data(C, UTL_TCP.crlf || '</HTML>');

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية

Account

Navigation

البحث

إعداد إشعارات المتصفح الفورية

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.