Removed code reference to sending the email. Appears to work correctly when going to the first thank-you page ( which includes attendee_id and event_id in the GET parameters ).  This page is different from the link sent in the email ( of which only has r_id as a GET parameter ).

Tested with SMTP plugin.