email fix

This commit is contained in:
2025-03-22 16:54:12 +01:00
parent adfe4dcbc2
commit 70f6b0c7b2

View File

@@ -197,7 +197,7 @@ public class EmailService {
String subject = String.format(" Afspraak geannuleerd: %s", formattedDate); String subject = String.format(" Afspraak geannuleerd: %s", formattedDate);
String recipient = appointment.getCustomer().getEmail(); String recipient = appointment.getCustomer().getEmail();
mailer.send(Mail.withHtml(recipient, subject, emailBody).setFrom("Hairstyling By Daan <paypoint@melvanveen.nl>")); mailer.send(Mail.withHtml(recipient, subject, emailBody).setFrom("Hairstyling By Daan <paypoint@melvanveen.nl>").setReplyTo(company.getEmail()));
} }
public void stuurBewerking(Appointment appointment) { public void stuurBewerking(Appointment appointment) {
@@ -285,7 +285,7 @@ public class EmailService {
String subject = String.format(" Afspraak gewijzigd: %s", formattedDate); String subject = String.format(" Afspraak gewijzigd: %s", formattedDate);
String recipient = appointment.getCustomer().getEmail(); String recipient = appointment.getCustomer().getEmail();
mailer.send(Mail.withHtml(recipient, subject, emailBody).setFrom(company.getEmail())); mailer.send(Mail.withHtml(recipient, subject, emailBody).setFrom("Hairstyling By Daan <paypoint@melvanveen.nl>").setReplyTo(company.getEmail()));
} }
public void stuurHerinnering(Appointment appointment) { public void stuurHerinnering(Appointment appointment) {