Oracle データベースから電子メールを送信したい。
だから私は次の手順を実行しました
@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlmail.sql
@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\prvtmail.plb
alter system set smtp_out_server = 'webmail.vilsoft.co.in:25' scope=both;
exec utl_mail.send(sender=> 'Id1@vilsoft.co.in', recipients=>'Id2@vilsoft.co.in', subject=>'test mail',message=>'hi');
PL/SQL プロシージャが正常に完了しました。
したがって、メールは宛先に正しく送信されます。
しかし、あるサーバーから別のサーバーにメールを送信したい場合は、次のクエリを実行します
SQL> exec utl_mail.send(sender=> 'ID1@vilsoft.co.in',recipients=>'Id2@gmail.com',
subject=>'test mail',message=>'hi');
その後、次のエラーが発生します....
BEGIN utl_mail.send(sender=> 'ID1@vilsoft.co.in',recipients=>'Id2@gmail.com',
subject=>'test mail',message=>'hi');
END;
*
ERROR at line 1:
ORA-29279: SMTP permanent error: 553 sorry, that domain isn't in my list of
allowed rcpthosts (#5.7.1)
ORA-06512: at "SYS.UTL_SMTP", line 20
ORA-06512: at "SYS.UTL_SMTP", line 98
ORA-06512: at "SYS.UTL_SMTP", line 240
ORA-06512: at "SYS.UTL_MAIL", line 424
ORA-06512: at "SYS.UTL_MAIL", line 594
ORA-06512: at line 1
だから、このエラーを解決するのを手伝ってください...