【问题标题】:PHPMailer error: "unable to connect to :25"PHPMailer 错误:“无法连接到:25”
【发布时间】:2012-07-02 08:11:17
【问题描述】:

当我尝试使用 PHPMailer 类发送电子邮件时,出现以下错误:

警告:fsockopen() [function.fsockopen]: 无法连接到 C:\Users\Testing\Downloads\PHPMailer\phpmailer\class 中的 :25 (无法连接,因为目标机器主动拒绝它。) .smtp.php 在第 105 行

谁能帮帮我?

【问题讨论】:

    标签: php phpmailer


    【解决方案1】:

    unable to connect to :25 表示您忘记在配置中输入服务器地址。

    确保在初始化 PHPMailer 时指定了有效的 SMTP 服务器地址。

    【讨论】:

      猜你喜欢
      • 2017-07-03
      • 2016-07-20
      • 1970-01-01
      • 1970-01-01
      • 2014-01-16
      • 2018-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多