//error_reporting(E_ALL); //Mail Controllers require_once '../../../smtpmailclass/class.phpmailer.php'; require_once '../../../smtpmailclass/class.smtp.php'; // optional, gets called from within class.phpmailer.php if not $hotels = new Hotels(); $session = new Sessions(); $reservations = new Reservations(); $bookingclient = new BookingClient(); $bookingclient = new BookingClient(); $rooms = new HotelRoomType(); $client; $merchantReferenceNo = $_REQUEST['resid']; //$session->getMerchantReferenceNo(); $reservations->setReservationId($merchantReferenceNo); $pay_data = $reservations->getReservationsFromId(); $reservations->extractor($pay_data); $reservation_link_id = $reservations->reservationFromBookingLink(); $reservations_status = $reservations->reservationPaymentStatus(); if ($reservations->reservationFromBookingLink()) { $client = new BookingClient(); $client->setId($reservations->reservationClientId()); $client->extractor($client->getClientsFromId()); $client_name = $client->name(); $client_email = $client->email(); } else { $client = new Clients(); $client->setClientId($reservations->reservationClientId()); $client->extractor($client->getClientFromId()); $client_name = $client->clientFirstName() . " " . $client->clientLastName(); $client_email = $client->clientEmail();