【问题标题】:How can I configure Gmail with Oracle Apex using stunnel (application express) 5.0.3如何使用 stunnel (application express) 5.0.3 使用 Oracle Apex 配置 Gmail
【发布时间】:2016-04-10 11:55:57
【问题描述】:

如何设置 Oracle Apex(应用程序快递)通过我的 Gmail 帐户发送电子邮件而不使用我自己的 SMTP?

【问题讨论】:

  • 请参阅this meta question。自我回答很好,但你仍然需要一个好问题和一个单独的答案。在这种情况下,像“如何配置 Gmail...”这样的问题无论如何都会过于宽泛和离题。

标签: oracle email gmail oracle-apex stunnel


【解决方案1】:

背景:

安装(我脑子里写的):

1.以root身份安装stunnel:

yum install stunnel -y

2.使用 nano 或 vi 为 stunnel 创建一个 conf 文件(安装 nano : yum install nano -y )

nano /etc/stunnel/stunnel.conf

3.在新创建的 stunnel.conf 中输入以下内容:

; Use it for client mode
client = yes

[ssmtp]
accept  = 1925
connect = smtp.gmail.com:465

4. 使用任何方法重新启动 stunnel,例如 kill -9 并使用以下命令开始:

/usr/bin/stunnel

5.以管理员身份登录apex:http://yourhost:port/ords/apex_admin

Go to : Manage instance -> instance settings.

6.进行以下设置:

SMTP Host Address : 127.0.0.1 (or your local)
SMTP Host Port : 1925 (as u can see in stunnel.conf above).
SMTP Authentication Username : your gmail username : etai.guday (WITHOUT @gmail.com)
SMTP Authentication Password : gmail password
Use SSL/TLS : NO
Default Email From Address : etai.guday@gmail.com (including @gmail.com)

7.由于 gmail 限制,您必须启用:https://g.co/allowaccess 才能使用上述方法(使用相关的 gmail 帐户)。

8.使用以下示例启用 Oracle DB ACL

https://www.dropbox.com/s/2ieaawy5gme9a50/email_configuration_acl_for_apex.txt?dl=0

以上所有内容都应该工作 :-) 没有时间进一步测试或参考安全问题等

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-22
    • 1970-01-01
    • 2016-08-27
    • 2020-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-17
    相关资源
    最近更新 更多