我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP邮件功能无法在新的Exchange 2010 Server上运行

When trying to send mail (to email addresses within the domain) using PHP's mail() function on my new Exchange 2010 server I get the error:

mail(): SMTP server response: 501 5.1.3 Invalid address

I tried creating a new receive connector with anonymous authentication but that doesn't seem to help, and honestly I have little to no experience with Exchange Server.

The address is valid, btw.

Try adding this on top:

ini_set("sendmail_from", "email@yourdomian.com");

It'll work

近期文章

  • 如何在PHP中解码JSON并将其插入到Mysql表中?
  • 使用curl检索图像 - php(issue)
  • Magento - 网格和产品信息的不同价格风格
  • 是否有jQuery .tmpl()方法完成事件处理?
  • 多个复选框插入
  • 关于使用ajax
  • 添加doctrine2查询的所有相关项的计数
  • 合并两个共享一个公共索引的数组中的数组 - php
  • 如何推送网站内容并在顶部插入广告?
  • 使用ajax验证重新计算的错误
  • 想知道图像被拉到哪里
  • 使用应用程序的名称在用户的墙上发布
  • Mac 10.6.8上的默认Apache,PHP和MySql
  • 搜索站点中的文件并将其复制到阵列
  • PHP和MySQL - 进行可过滤搜索(提供示例)
  • 某个jquery脚本的php实现。 查找具有一定长度文本的p元素的父元素
  • 博客存档列表问题
  • 使用数组中的数据
  • 以编程方式检查远程网站“显示”特定的html元素
  • 图像在单独的页面中与底部的其他图像

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华