0

我想使用 Oracle 11g 中的 UTL_MAIL 包发送邮件。是否可以为此使用“smtp.gmail.com”谷歌 imap 服务器作为我的 SMTP 服务器?请帮忙?

BEGIN
EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''smtp.google.com''';
UTL_MAIL.send(sender => 'sheran.ewisl@gmail.com',
recipients => 'mail@susantha.net',
subject => 'Test Mail',
message => 'Hello World',
mime_type => 'text; charset=us-ascii');
END;
4

1 回答 1

0

it cannot possible with Oracle 11g express edition where we will need to authenticate smstp.google.com and to this we have to obtain certificate and have to register on oracle server using oracle wallet , but in oracle express edition there is no functionality to create wallet but using wallet manages then u can use it with express edition ,this method suggested on a blog and i still got chance to do that , until then its not possible on oracle free version but on paid version possible. :)

于 2014-05-05T10:11:07.153 回答