PHPmailer发送邮件失败 在线等!!!

YANGSHENGJIANGPASS 2012-02-01 10:48:56
发送错误提示:
SMTP Error: Could not connect to SMTP host. Mailer Error (9475@qq.com) SMTP Error: Could not connect to SMTP host.
本地测试正常 上传到服务器上就出错了
当我把类中的函数
public function IsSMTP()
{
$this->Mailer = 'smtp'; //改成 $this->Mailer = 'SMTP'; 就可以发送 但是发送的邮件标题重复 并且被当做垃圾邮件处理
}

怎么解决 ??


...全文
198 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pengfeng2345 2013-05-10
  • 打赏
  • 举报
回复
貌似楼上的没用啊
蹲坑看月亮 2013-01-04
  • 打赏
  • 举报
回复
更改phpmailer 的 class.stmp.php文件: $this->smtp_conn = @fsockopen( $host, // the host of the server $port, // the port to use $errno, // error number if any $errstr, // error message if any $tval); // give up after ? secs 改为 $this->smtp_conn = @stream_socket_client( $host.':'.$port, // the host of the server $errno, // error number if any $errstr, // error message if any $tval); // give up after ? secs
YANGSHENGJIANGPASS 2012-02-01
  • 打赏
  • 举报
回复
CSDN 有没有老鸟...

21,887

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧