我想从 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
所以请帮我解决这个错误......