Hi
I have a insert server connect that create a room booking and with a tagify input, the users join the booking.
I need to send an email to each user.
But I receive 4 emails instead of 3 (users join the booking) and with same informations (the first user of 3) instead of different for each.
Can someone help me?
First of all the Setup Mailer and Security Provider steps should be defined under Globals in server connect. They should not be in the server action step:
Are you intending to use a while loop for a specific purpose? Using a repeat step instead, pointed to the queryUsersReservation data would probably be more effective and give you access to each record’s values more easily.
If you want to use while it should just be < (not <=) - that is why you get 4 emails instead of 3
Well you are currently pointing to the first record of the query only:
You need to add a repeat, which repeats the query (not this while thing there) and put the send mail step inside it. It will be repeated as many times as the number of database records are returned.