diff --git a/svc/internal/mailer/mailer.go b/svc/internal/mailer/mailer.go index 9ca372b..3e4913f 100644 --- a/svc/internal/mailer/mailer.go +++ b/svc/internal/mailer/mailer.go @@ -3,6 +3,7 @@ package mailer import ( "context" "crypto/tls" + "encoding/base64" "errors" "fmt" "net" @@ -138,11 +139,13 @@ func (m *Mailer) Send(ctx context.Context, msg Message) error { } func buildMIME(from string, to []string, subject, contentType, body string) string { - // Subject UTF-8 basit hali (gerekirse sonra MIME encoded-word ekleriz) + // Encode Subject to UTF-8 + encodedSubject := "=?UTF-8?B?" + base64.StdEncoding.EncodeToString([]byte(subject)) + "?=" + headers := []string{ "From: " + from, "To: " + strings.Join(to, ", "), - "Subject: " + subject, + "Subject: " + encodedSubject, "MIME-Version: 1.0", "Content-Type: " + contentType, "", diff --git a/svc/routes/orderproductionitems.go b/svc/routes/orderproductionitems.go index 2db72b5..03d32c4 100644 --- a/svc/routes/orderproductionitems.go +++ b/svc/routes/orderproductionitems.go @@ -562,7 +562,7 @@ func sendProductionUpdateMails(db *sql.DB, ml *mailer.GraphMailer, orderHeaderID subject := fmt.Sprintf("%s tarafından %s Nolu Sipariş Güncellendi (Üretim)", actor, orderNo) var body strings.Builder - body.WriteString("
") + body.WriteString("") body.WriteString(fmt.Sprintf("Sipariş No: %s
", orderNo)) body.WriteString(fmt.Sprintf("Cari: %s
", currAccCode)) body.WriteString(fmt.Sprintf("Piyasa: %s (%s)
", marketTitle, marketCode)) diff --git a/ui/src/pages/OrderProductionUpdate.vue b/ui/src/pages/OrderProductionUpdate.vue index b0c7b99..cc6684b 100644 --- a/ui/src/pages/OrderProductionUpdate.vue +++ b/ui/src/pages/OrderProductionUpdate.vue @@ -17,6 +17,7 @@ icon="save" label="Secili Degisiklikleri Kaydet" :loading="store.saving" + :disable="store.loading" @click="onBulkSubmit" /> @@ -101,6 +102,7 @@