feat: 实现联系表单提交与邮件通知功能
添加联系表单提交接口和邮件通知功能,支持从环境变量读取 SMTP 配置 重构 SEO 配置到 site.json,新增 robots.txt 和 sitemap.xml 生成 更新公司电话并添加 PM2 生产运行配置
This commit is contained in:
19
config/contact-mailer.yaml
Normal file
19
config/contact-mailer.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
# 官网“获取初步方案”邮件通知配置
|
||||
# 支持直接写死 SMTP 参数,也支持通过 ${ENV_NAME} / ${ENV_NAME:default} 引用环境变量。
|
||||
|
||||
smtp:
|
||||
host: ${MAIL_HOST:smtp.feishu.cn}
|
||||
port: ${MAIL_PORT:465}
|
||||
secure: ${MAIL_SSL_ENABLED:true}
|
||||
auth:
|
||||
user: ${MAIL_USER}
|
||||
pass: ${MAIL_PASS}
|
||||
from:
|
||||
email: ${MAIL_FROM_EMAIL:hi@jiuchan.org}
|
||||
name: ${MAIL_FROM_NAME:智店软件官网}
|
||||
|
||||
notification:
|
||||
to:
|
||||
- ixor@qq.com
|
||||
# - bd@zhidiansoft.com
|
||||
subjectPrefix: 官网线索
|
||||
Reference in New Issue
Block a user