增加邮件发送功能

This commit is contained in:
2026-02-05 22:27:49 +08:00
parent 27819199a4
commit a32b1656b0
5 changed files with 371 additions and 2 deletions
+42
View File
@@ -0,0 +1,42 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace app\model\System;
use think\Model;
use think\model\concern\SoftDelete;
/**
* 系统邮箱模型
*/
class SystemEmail extends Model
{
// 数据库表名
protected $name = 'mete_system_email';
// 字段类型转换
protected $type = [
'id' => 'integer',
'from_address' => 'string',
'from_name' => 'string',
'host' => 'string',
'port' => 'integer',
'username' => 'string',
'password' => 'string',
'encryption' => 'string',
'timeout' => 'integer',
'create_time' => 'datetime',
'update_time' => 'datetime',
];
}