I have a layout that lists all rent payments for a property within this portal.
I've added an EMAIL button next to each rent payment within the portal. This will all the user to email the receipt to the tenant.
The script attached to the button is basically looking at the related record.
I must be doing something wrong as it only seem to only generate the receipt for the first rent payment within the portal, and not the record selected.