fix: template message send mutli

This commit is contained in:
Your Name
2026-01-15 08:52:57 +08:00
parent 328e88e8c4
commit 18ad967df3
4 changed files with 31 additions and 15 deletions
@@ -28,6 +28,11 @@ func (c *EmailChannel) SendUnified(msgObj interface{}, ins models.SendTasksIns,
if !ok {
return "", "邮箱config校验失败"
}
if config.ToAccount == "" {
return "", "收件邮箱地址为空,请检查实例配置或启用动态接收模式"
}
contentType, formattedContent, err := c.FormatContent(content)
if err != nil {
return "", err.Error()