feat: 添加基金监控系统基础功能
添加基金监控系统相关文件,包括邮件发送功能、基金数据配置、测试脚本等。主要包含以下内容: 1. 添加PHPMailer库及相关语言文件 2. 添加基金配置数据文件(fund_config.json, fund_names.json等) 3. 添加邮件发送测试脚本(test_email.php, test_fund_email.php等) 4. 添加.gitignore文件忽略不必要的文件 5. 添加composer.json配置依赖 Signed-off-by: LL <LL>
This commit is contained in:
17
test_email.php
Normal file
17
test_email.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
require_once 'api.php';
|
||||
|
||||
// 创建API实例
|
||||
$api = new FundMonitorAPI();
|
||||
|
||||
// 测试邮件发送功能
|
||||
$subject = "测试邮件 - 基金监控系统";
|
||||
$body = "<h2>测试邮件</h2><p>这是一封来自基金监控系统的测试邮件。</p><p>测试时间:" . date('Y-m-d H:i:s') . "</p>";
|
||||
|
||||
// 发送测试邮件
|
||||
if ($api->testEmail($subject, $body)) {
|
||||
echo "邮件发送成功!";
|
||||
} else {
|
||||
echo "邮件发送失败!";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user