meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Email difficulty (not sure we understand the instructions) #2755

Open jberanek opened 4 years ago

jberanek commented 4 years ago

We're using MRBS with Wordpress authentication, which works fine. Now, we want to make some bookings dependant on approval from an admin. We can set this up in config.inc.php. But have a question. The notes on doing this say (under // HOW TO EMAIL - ADDRESSES) " if you have set $mail_settings['booker'] above to true, MRBS will // need the email addresses of ordinary users. If you are using the "db" // authentication method then MRBS will be able to get them from the users table. But // if you are using any other authentication scheme then the following settings allow // you to specify a domain name that will be appended to the username to produce a // valid email address (eg "@domain.com").

We are wondering if MRBS can actually pull the booker's email address from the Wordpress DB (as every WP user must have an email address). The documentation suggests not, but wondered if this might have been changed with the introduction of the Wordpress auth method? If it's the case that this cannot be done, we are a bit puzzled as to how we can email the person who booked? The last sentence of the notes quoted above is proving a bit difficult for us to fathom. Adding a "@domain.com" will indeed produce an email address..but it will not be the booker's email address. What have we not grasped? Thanks for any help/clarification.

Reported by: *anonymous

Original Ticket: mrbs/support-requests/2061

jberanek commented 4 years ago

Yes, sorry, just ignore that documentation - I'll change it. MRBS should just get the user's email address automatically from WP.

Original comment by: campbell-m

jberanek commented 4 years ago

OK - Many thanks - Had hoped that was the case!

Original comment by: *anonymous