【发布时间】:2012-07-02 08:11:17
【问题描述】:
当我尝试使用 PHPMailer 类发送电子邮件时,出现以下错误:
警告:fsockopen() [function.fsockopen]: 无法连接到 C:\Users\Testing\Downloads\PHPMailer\phpmailer\class 中的 :25 (无法连接,因为目标机器主动拒绝它。) .smtp.php 在第 105 行
谁能帮帮我?
【问题讨论】:
当我尝试使用 PHPMailer 类发送电子邮件时,出现以下错误:
警告:fsockopen() [function.fsockopen]: 无法连接到 C:\Users\Testing\Downloads\PHPMailer\phpmailer\class 中的 :25 (无法连接,因为目标机器主动拒绝它。) .smtp.php 在第 105 行
谁能帮帮我?
【问题讨论】:
unable to connect to :25 表示您忘记在配置中输入服务器地址。
确保在初始化 PHPMailer 时指定了有效的 SMTP 服务器地址。
【讨论】: