【问题标题】:How to get ServerAdmin email variable from httpd.conf如何从 httpd.conf 获取 ServerAdmin 电子邮件变量
【发布时间】:2016-12-01 08:45:15
【问题描述】:

如何在 xampp 中从 httpd.conf 获取 ServerAdmin 电子邮件 我已经设置了

ServerAdmin test@gmail.com

D:\xampp\apache\conf\httpd.conf;但我不知道如何在 php 中访问 ServerAdmin。

我想在我的邮件中使用ServerAdmin 电子邮件

$this->load->library('tes_email');
$this->test_email->from("test@gmail.com");
$this->test_email->to();//i don't know how to pass serverAdmin email in to
$this->test_email->subject("test test");
$this->test_email->message("test subject");
$this->test_email->send();

请帮帮我。

【问题讨论】:

    标签: php apache codeigniter xampp httpd.conf


    【解决方案1】:

    它列在附加到密钥 SERVER_ADMIN 的服务器环境变量下。

    来自$_SERVER global variable 上的文档:

    'SERVER_ADMIN'

    SERVER_ADMIN(对于 Apache)指令在 网络服务器配置文件。如果脚本在虚拟机上运行 主机,这将是为该虚拟主机定义的值。

    【讨论】:

      猜你喜欢
      • 2013-02-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-16
      • 1970-01-01
      • 2015-11-10
      • 2014-06-16
      • 1970-01-01
      相关资源
      最近更新 更多