X-Git-Url: https://xp-dev.com/git/RRRRHHHH_Code/blobdiff_plain/3a02960eb6ac40b4c3c6e452983c8cb7398c6f21..1cf3957b65da8317e0f2f8cdbec1abb029b8c07d:/ruralHouses/src/businessLogic/BookingManager.java diff --git a/ruralHouses/src/businessLogic/BookingManager.java b/ruralHouses/src/businessLogic/BookingManager.java index 0c74d08..3fe64f2 100644 --- a/ruralHouses/src/businessLogic/BookingManager.java +++ b/ruralHouses/src/businessLogic/BookingManager.java @@ -42,6 +42,11 @@ public final class BookingManager extends UnicastRemoteObject implements Booking public void denyBooking(Booking b) throws RemoteException{ this.dbMngr.removeBooking(b); + try { + MailManager.getInstance().Send(b.getClient().getMailAccount(), "Your booking has not been accepted","We are sorry"); + } catch (MessagingException e) { + e.printStackTrace(); + } }