This commit is contained in:
Dvorinka
2025-06-20 11:36:49 +02:00
parent 78d3225b05
commit 888d1b222e
+5 -5
View File
@@ -256,7 +256,7 @@ func getVisitorId(w http.ResponseWriter, r *http.Request) string {
}
// Generate a new unique ID
visitorId := fmt.Sprintf("%x", md5.Sum([]byte(time.Now().String() + randomString(16))))
visitorId := fmt.Sprintf("%x", md5.Sum([]byte(time.Now().String()+randomString(16))))
// Set the cookie to expire in 1 year
http.SetCookie(w, &http.Cookie{
@@ -1423,11 +1423,11 @@ func handleSubmit(w http.ResponseWriter, r *http.Request) {
}
func sendEmail(entry TripEntry, parsedDateStart, parsedDateEnd time.Time, czechMonths []string) error {
smtpHost := "mail.pp-kunovice.cz"
smtpHost := "smtp.purelymail.com"
smtpPort := 465
sender := "sluzebnicek@pp-kunovice.cz"
password := "7g}qznB5bj"
recipient := "sluzebnicek@pp-kunovice.cz"
sender := "info@tdvorak.dev"
password := "%8s3Yad*!b3*t"
recipient := "info@tdvorak.dev"
m := gomail.NewMessage()
m.SetHeader("From", sender)