设置sendmail_path

发布于 2025-01-25 02:26:07 字数 569 浏览 2 评论 0原文

当提交引导格式表单时,我一直在使用sendmail_path设置从地址设置。这比 email  protected;

最近,我工作过的几个网站已升级到7.4菲律宾比索。这个较新的PHP版本打破了我设置的php.ini文件函数。

有人知道如何修改下面的代码以还原以前的功能吗?

该代码在PHP 7.4之前工作,但现在返回

sendmail_path="/usr/sbin/sendmail -t -i -f [email protected]"

I've been using the sendmail_path to set the from address when a Bootstrap form is submitted. This is preferred over the server default of [email protected].

Recently several sites I've worked on have been upgraded to PHP 7.4. This newer version of PHP has broken the php.ini file function I had set.

Does anyone know how I might mod the code below to restore the previous functionality?

This code was working prior to PHP 7.4, but now returns [email protected] instead of the address I have set.

sendmail_path="/usr/sbin/sendmail -t -i -f [email protected]"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

画中仙 2025-02-01 02:26:07

您在这里有2个选项。

  1. 更改php.ini文件
  2. 使用
ini_set('sendmail_path', '/usr/sbin/sendmail -t -i -f [email protected]');

You have 2 options here.

  1. Change the php.ini file
  2. Use
ini_set('sendmail_path', '/usr/sbin/sendmail -t -i -f [email protected]');
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文