BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
Cancel incorrect parameter identification
lotkd53b1fe9cc8d
diff --git a/core/internal/service/batch_mail/task_executor.go b/core/internal/service/batch_mail/task_executor.goindex 02694fe0..70d2fbfb 100644--- a/core/internal/service/batch_mail/task_executor.go+++ b/core/internal/service/batch_mail/task_executor.go@@ -995,17 +995,17 @@ func (e *TaskExecutor) personalizeEmail(ctx context.Context, content string, tas}// Restore the erroneous variable- renderedContent = e.restoreErrorVariables(renderedContent)- renderedSubject = e.restoreErrorVariables(renderedSubject)+ //renderedContent = e.restoreErrorVariables(renderedContent)+ //renderedSubject = e.restoreErrorVariables(renderedSubject)return renderedContent, renderedSubject}-// restoreErrorVariables 恢复 [__变量__] 为 {{变量}}-func (e *TaskExecutor) restoreErrorVariables(content string) string {- re := regexp.MustCompile(`\[__([^_]+)__\]`)- return re.ReplaceAllString(content, "{{$1}}")-}+//// restoreErrorVariables 恢复 [__变量__] 为 {{变量}}+//func (e *TaskExecutor) restoreErrorVariables(content string) string {+// re := regexp.MustCompile(`\[__([^_]+)__\]`)+// return re.ReplaceAllString(content, "{{$1}}")+//}// sendEmail send emailfunc (e *TaskExecutor) sendEmail(ctx context.Context, task *entity.EmailTask, recipient *entity.RecipientInfo, content string) *SendResult {