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
Adjust the BILLIONMAIL_HOSTNAME acquisition
lotk7a5082f62e3d
diff --git a/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go b/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.goindex c2201134..b4ca7a47 100644--- a/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go+++ b/core/internal/controller/batch_mail/batch_mail_v1_api_templates_list.go@@ -131,7 +131,7 @@ func (c *ControllerV1) ApiTemplatesList(ctx context.Context, req *v1.ApiTemplateips = append(ips, row.Ip)}item.IpWhitelist = ips- item.ServerAddresser = public.GethostUrl() + "api/batch_mail/api/send"+ item.ServerAddresser = public.GethostUrl() + "/api/batch_mail/api/send"}res.Data.Total = totaldiff --git a/core/internal/service/public/common.go b/core/internal/service/public/common.goindex 7a1a7f0c..0f379a2a 100644--- a/core/internal/service/public/common.go+++ b/core/internal/service/public/common.go@@ -2652,9 +2652,9 @@ func GethostUrl() string {if hostname == "" || hostname == "mail.example.com" {serverIP, _ := GetServerIP()serverPort := MustGetDockerEnv("HTTPS_PORT", "443")- hostUrl = fmt.Sprintf("https://%s:%s/", serverIP, serverPort)+ hostUrl = fmt.Sprintf("https://%s:%s", serverIP, serverPort)} else {- hostUrl = fmt.Sprintf("https://%s/", hostname)+ hostUrl = fmt.Sprintf("https://%s", hostname)}return hostUrl