ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
>[danger] 自定义配置文件 ``` 在配置目录下新建 mail.php ``` ![](https://img.kancloud.cn/25/13/251398a3e1b8f154b9a92b454dd5dd24_850x484.png) >[danger] 读取配置文件内容 ```php // 返回数组 $mail = \think\facade\Config::get('mail'); // 返回 stmp.qq.com $host = \think\facade\Config::get('mail.host'); ```