【问题标题】:Can't send Email SMTP in ez publish 5.4无法在 ez publish 5.4 中发送电子邮件 SMTP
【发布时间】:2018-08-17 00:17:33
【问题描述】:

我无法发送或接收电子邮件,我将以下设置添加到:位于D:\EasyPHP-.3.3\www\ezpublish5.4\ezpublish_legacy\settings 的site.ini:

Transport=sendmail
#A list of possible handlers for sending mails, use the setting Transport to specify which one to use

TransportAlias[]
TransportAlias[file]=eZFileTransport
TransportAlias[sendmail]=eZSendmailTransport
TransportAlias[smtp]=eZSMTPTransport
# Configuration for SMTP
TransportServer=smtp.gmail.com
# Connection type in SMTP: <empty>(no encryption)|ssl|sslv2|sslv3|tls
TransportConnectionType=ssl
# Default SMTP port is 25, default Secure SMTP port(SSL,TLS) is 465
TransportPort=465
TransportUser=user@server.com
TransportPassword=mypassword
SenderHost=localhost
AdminEmail=user@server.com
# The address which will be set as the From header of the e-mail, unless
# overridden by the template variable email_sender.
EmailSender=user@server.com
DebugReceiverEmail=user@server.com

以及Proxy的配置:

ProxyServer=**********:9090
User=user
Password=************

是否有人做过类似的事情,或者我在论坛帖子中拼错了主题搜索。无论如何,如果有人能指出我正确的方向,我会很高兴。

【问题讨论】:

    标签: ezpublish


    【解决方案1】:

    我从未将 Google 帐户配置为直接从 EZ 发送邮件,但试试这个:

    TransportServer=smtp.googlemail.com
    

    邮件传递被延迟并最终进入 gmail 垃圾邮件文件夹(我认为您是通过 eZ Publish 向 gmail 帐户发送电子邮件)。

    让我向您保证,这不是 eZ Publish 问题,因为 eZ Mail 很稳定(坚如磐石)。

    【讨论】:

    • 我已经尝试过了,但它不起作用:我有这个错误:[127.0.0.1] eZSMTPTransport::sendMail: 发送或接收邮件时发生错误。无法连接到 smtp 服务器::465。 [127.0.0.1] 时间点:模块结束“内容”你用什么作为 TransportServer ?无论 TransportServer 是什么,我的目标都是发送/接收电子邮件。
    【解决方案2】:

    我觉得你应该设置Transport=smtp

    【讨论】:

    • 我也配置了 Sendmail,但不幸的是它不起作用,我在 Windows 7 上工作,所以我不能使用这个教程。我的配置如下:EasyPHP-5.3.3 和 eZ Publish Community Project 2014.07。我认为问题在于我有一个代理设置阻止了要发送的邮件,我尝试在没有代理设置的地方测试发送邮件,它工作正常。
    猜你喜欢
    • 1970-01-01
    • 2017-11-24
    • 2022-07-20
    • 2019-01-23
    • 2017-02-15
    • 2020-03-02
    • 1970-01-01
    • 1970-01-01
    • 2011-07-30
    相关资源
    最近更新 更多