我正在尝试更改CodeIgniter的email类发送的用户代理和X-Mailer头,以便任何人都无法发现该网站正在CI框架上运行。
application/config/email.php
包含以下内容的文件:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$config['mailtype'] = 'html';
$config['useragent'] = 'MyUseragentHere';
当我查看收到的电子邮件的标题时,它们看起来是这样的:
User-Agent: CodeIgniter
X-Mailer: MyUseragentHere