الانتقال إلى المحتوى
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.

How To Send E-mail In Oracle

Featured Replies

بتاريخ:

ارسال بريد الكتروني من خلال Oracle

Mail_in_Oracle.txt

بتاريخ:

أخي العزيز

السلام عليكم

شكرا جزيلا على هذه المشاركة لكن هل أنت متأكد من هذه الطريقة

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

100%
و انا مجربها .....

  • بعد 1 سنة...
بتاريخ:



create or replace procedure email is
SendorAddress Varchar2(30) := '[email protected]';

ReceiverAddress varchar2(30) := '[email protected]';

EmailServer varchar2(30) := '192.168.1.10';--ex: 15.255.0.60

Port number := 25;

conn UTL_SMTP.CONNECTION;

crlf VARCHAR2(2) := CHR(13) || CHR(10);

mesg VARCHAR2(4000);

mesg_body varchar2(4000)

:= '<html>
<head>
<title>Oracle Techniques - Mail Section</title>
</head>
<body bgcolor="black" link="#FFFFFF">
<table cellspacing="0" cellpadding="0" width="100%">
<tr align="LEFT" valign="BASELINE">
<td align="center" width="100%" valign="middle">
<h1><font color="#FFFFFF"><b>Sami Jwaifel</b></font></h1>
</td>
</tr>
<tr>
<td align="center" width="100%" valign="middle">
<a href="#">Oracle Techniques is for DBAs</a>
</td>
</tr>
</table>
</body>
</html>';
BEGIN
conn := utl_smtp.open_connection(EmailServer, Port);
utl_smtp.helo(conn, EmailServer);
utl_smtp.mail(conn, SendorAddress);
utl_smtp.rcpt(conn, ReceiverAddress);
mesg := 'Date: ' || TO_CHAR(SYSDATE, 'dd Mon yy hh24:mi:ss') || crlf ||
'From:' || SendorAddress || crlf || 'Subject: DWH' || crlf ||
'To: ' || ReceiverAddress || crlf || '' || crlf || mesg_body || '';
utl_smtp.data(conn,
'MIME-Version: 1.0' || CHR(13) || CHR(10) ||
'Content-type: text/html' || CHR(13) || CHR(10) || mesg);
utl_smtp.quit(conn);
END;
/





يتم انشاء البروسيجر ولكن عند التنفيذ يظهر الخطا هذا:

ERROR at line 1:
ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for
[email protected]
ORA-06512: at "SYS.UTL_SMTP", line 21
ORA-06512: at "SYS.UTL_SMTP", line 99
ORA-06512: at "SYS.UTL_SMTP", line 241
ORA-06512: at "TEST.EMAIL", line 33
ORA-06512: at line 1

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

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

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

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

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

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.