Merge branch 'master' of ssh://xp-dev.com/RRRRHHHH_Code
[RRRRHHHH_Code] / ruralHouses / src / businessLogic / BookingManager.java
index 0c74d08..3fe64f2 100644 (file)
@@ -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();
+                               }
        }