Reply To: Add an email field in backend

Add input to resources setting and save it as post meta. Then make a function that makes an array, key should be the resource’s ID’s and the value the emails from it’s post meta. You can get all resources with the function easyreservations_get_rooms(). Execute that function/array in the email function (easyreservatuions_send_mail()) like $mails = your_function();

Then change the line $reservation_support_mail = get_option(“reservations_support_mail”);
to $reservation_support_mail = $mails[$infos->roomnumber];

That’s how I would do it.