RRRRHHHH_Code
Diff Revisions 92bcb4 ... vs e3043c ... for ruralHouses/src/businessLogic/BookingManager.java
@@ -75,6 +75,11 @@ | |||
75 | 75 | ||
76 | 76 | public void denyBooking(Booking b) throws RemoteException{ | |
77 | 77 | this.dbMngr.removeBooking(b); | |
78 | + | try { | |
79 | + | MailManager.getInstance().Send(b.getClient().getMailAccount(), "Your booking has not been accepted","We are sorry"); | |
80 | + | } catch (MessagingException e) { | |
81 | + | e.printStackTrace(); | |
82 | + | } | |
78 | 83 | } | |
79 | 84 | ||
80 | 85 |