【问题标题】:Can I use smstp.gmail.com as mail server in UTL_MAIL?我可以在 UTL_MAIL 中使用 smstp.gmail.com 作为邮件服务器吗?
【发布时间】:2014-04-29 09:05:29
【问题描述】:

我想在 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;

【问题讨论】:

    标签: oracle11g smtp utl-mail


    【解决方案1】:

    Oracle 11g express 版本不可能,我们需要对 smstp.google.com 进行身份验证,为此我们必须获得证书并且必须使用 oracle wallet 在 oracle 服务器上注册,但是在 oracle express 版本中没有功能创建钱包但使用钱包管理然后你可以将它与快递版一起使用,这个方法在博客上建议,我仍然有机会这样做,在此之前它不可能在 oracle 免费版本上但在付费版本上是可能的。 :)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-06-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-10-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多