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
Fix the confirmation welcome email
lotk0bde0f20c330
diff --git a/core/internal/controller/subscribe_list/subscribe_list.go b/core/internal/controller/subscribe_list/subscribe_list.goindex d4920281..7f03a6da 100644--- a/core/internal/controller/subscribe_list/subscribe_list.go+++ b/core/internal/controller/subscribe_list/subscribe_list.go@@ -319,11 +319,8 @@ func GetSubscribeFormCode(groupToken string) string {filePath := public.AbsPath("../core/template/subscribe_form_code.html")content := gfile.GetContents(filePath)- ctx := context.Background()- g.Log().Warning(ctx, "subscribe_form_code.html path----->", filePath)if !strings.Contains(content, "{{ SubmitURL . }}") {- g.Log().Warning(ctx, "subscribe_form_code.html not contains {{ SubmitURL . }}")return ""}diff --git a/core/internal/controller/subscribe_list/subscribe_list_v1_subscribe_confirm.go b/core/internal/controller/subscribe_list/subscribe_list_v1_subscribe_confirm.goindex 373cd882..ad874bff 100644--- a/core/internal/controller/subscribe_list/subscribe_list_v1_subscribe_confirm.go+++ b/core/internal/controller/subscribe_list/subscribe_list_v1_subscribe_confirm.go@@ -64,8 +64,7 @@ func (c *ControllerV1) SubscribeConfirm(ctx context.Context, req *v1.SubscribeCogroup.WelcomeSubject = "Welcome Aboard!"}gtimer.AddOnce(500*time.Millisecond, func() {-- err = sendMail(ctx, group.WelcomeHtml, req.Email, group.WelcomeSubject, "")+ err = sendMail(ctx, group.WelcomeHtml, email, group.WelcomeSubject, "")if err != nil {g.Log().Error(ctx, "Failed to send welcome email: {}", err)return